pub enum Template<L: Logic> {
Stack {
style: StackStyle,
children: Templates<L>,
scrolls: bool,
},
Widget {
widget: Widget<L>,
deps: StateSet,
},
Region {
region: L::Region,
deps: StateSet,
},
}Expand description
One element of a window’s UI, before it is shown.
Variants§
Stack
Its children scroll up and down inside it when scrolls and they are too tall.
Widget
Updated in place when deps change.
Region
Rebuilt in place when deps change.
Trait Implementations§
Auto Trait Implementations§
impl<L> !Send for Template<L>
impl<L> !Sync for Template<L>
impl<L> Freeze for Template<L>
impl<L> RefUnwindSafe for Template<L>where
<L as Logic>::Region: RefUnwindSafe,
<L as Logic>::Value: RefUnwindSafe,
<L as Logic>::Action: RefUnwindSafe,
<L as Logic>::Binding: RefUnwindSafe,
impl<L> Unpin for Template<L>
impl<L> UnsafeUnpin for Template<L>where
<L as Logic>::Region: UnsafeUnpin,
<L as Logic>::Value: UnsafeUnpin,
<L as Logic>::Action: UnsafeUnpin,
<L as Logic>::Binding: UnsafeUnpin,
impl<L> UnwindSafe for Template<L>where
<L as Logic>::Region: UnwindSafe + RefUnwindSafe,
<L as Logic>::Value: UnwindSafe + RefUnwindSafe,
<L as Logic>::Action: UnwindSafe + RefUnwindSafe,
<L as Logic>::Binding: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more