pub enum PendingChild {
Id(WidgetId),
Deferred(Box<dyn Widget>),
}Expand description
A child that is either pre-registered (ID) or waiting to be inserted.
Used by the inline child() builder pattern: deferred children are stored
inside the container and resolved recursively when BuildContext::add()
inserts the container into the arena.
Variants§
Id(WidgetId)
Already in the arena — use this ID directly.
Deferred(Box<dyn Widget>)
Not yet in the arena — insert during resolution.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PendingChild
impl !Send for PendingChild
impl !Sync for PendingChild
impl !UnwindSafe for PendingChild
impl Freeze for PendingChild
impl Unpin for PendingChild
impl UnsafeUnpin for PendingChild
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