pub struct Slots { /* private fields */ }Expand description
The children a component receives from its call site, grouped by slot. A bare child lands in the
default slot (None); a child written with slot:"name" lands in that named slot. Inside the
component, the children placeholder drains the default slot and children name:"x" drains the
"x" slot — each in call-site order. Draining is one-shot: a slot placeholder consumes its
children, so referencing the same slot twice yields an empty list the second time.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Slots
impl !Send for Slots
impl !Sync for Slots
impl !UnwindSafe for Slots
impl Freeze for Slots
impl Unpin for Slots
impl UnsafeUnpin for Slots
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