pub struct SlottedChild {
pub slot: Option<String>,
pub id: WidgetId,
}Expand description
One child handed to WidgetCatalog::build_with_children: a
pre-registered widget id plus, for WidgetCategory::ContainerB
parents, the name of the slot it fills (None for the ordered
children of a WidgetCategory::ContainerA parent).
Fields§
§slot: Option<String>The named slot this child fills (ContainerB), or None for an
ordered bare child (ContainerA).
id: WidgetIdThe pre-registered child widget, already inserted in the arena.
Trait Implementations§
Source§impl Clone for SlottedChild
impl Clone for SlottedChild
Source§fn clone(&self) -> SlottedChild
fn clone(&self) -> SlottedChild
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SlottedChild
impl RefUnwindSafe for SlottedChild
impl Send for SlottedChild
impl Sync for SlottedChild
impl Unpin for SlottedChild
impl UnsafeUnpin for SlottedChild
impl UnwindSafe for SlottedChild
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