pub enum WidgetKind<'a> {
View(&'a (dyn ViewWidgetOS + 'a)),
Inherited(&'a (dyn InheritedWidgetOS + 'a)),
Leaf(&'a (dyn LeafWidgetOS + 'a)),
SingleChild(&'a (dyn SingleChildWidgetOS + 'a)),
MultiChild(&'a (dyn MultiChildWidgetOS + 'a)),
}Variants§
View(&'a (dyn ViewWidgetOS + 'a))
Inherited(&'a (dyn InheritedWidgetOS + 'a))
Leaf(&'a (dyn LeafWidgetOS + 'a))
SingleChild(&'a (dyn SingleChildWidgetOS + 'a))
MultiChild(&'a (dyn MultiChildWidgetOS + 'a))
Trait Implementations§
Source§impl<'a> Clone for WidgetKind<'a>
impl<'a> Clone for WidgetKind<'a>
Source§fn clone(&self) -> WidgetKind<'a>
fn clone(&self) -> WidgetKind<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for WidgetKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for WidgetKind<'a>
impl<'a> !Immutable for WidgetKind<'a>
impl<'a> !RefUnwindSafe for WidgetKind<'a>
impl<'a> !Send for WidgetKind<'a>
impl<'a> !Sync for WidgetKind<'a>
impl<'a> Unpin for WidgetKind<'a>
impl<'a> !UnwindSafe for WidgetKind<'a>
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