pub struct Slot<T> { /* private fields */ }Expand description
Typed slot storage for component fields.
The type parameter expresses the semantic child contract, while the runtime value stores already-rendered markup.
Implementations§
Trait Implementations§
impl<T: Eq> Eq for Slot<T>
impl<T> StructuralPartialEq for Slot<T>
Auto Trait Implementations§
impl<T> Freeze for Slot<T>
impl<T> RefUnwindSafe for Slot<T>
impl<T> Send for Slot<T>
impl<T> Sync for Slot<T>
impl<T> Unpin for Slot<T>
impl<T> UnsafeUnpin for Slot<T>
impl<T> UnwindSafe for Slot<T>
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