pub struct WidgetBox(pub Box<dyn Widget>);Expand description
Concrete wrapper that stores a Box<dyn Widget> inside a NativeElement.
The element walker in the umbrella crate downcasts NativeElement.payload
to this type to retrieve the widget for layout + paint.
Tuple Fields§
§0: Box<dyn Widget>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WidgetBox
impl !UnwindSafe for WidgetBox
impl Freeze for WidgetBox
impl Send for WidgetBox
impl Sync for WidgetBox
impl Unpin for WidgetBox
impl UnsafeUnpin for WidgetBox
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