pub struct SlotsHost { /* private fields */ }Expand description
Holds a slot table into which a composition writes: the main composition has one, and each subcomposition has its own.
Implementations§
Source§impl SlotsHost
impl SlotsHost
Sourcepub fn storage_key(&self) -> usize
pub fn storage_key(&self) -> usize
Returns a key that identifies the slot table the host holds. It changes when the table is replaced or taken out.
Sourcepub fn note_nested_host(&self, nested: &Rc<SlotsHost>)
pub fn note_nested_host(&self, nested: &Rc<SlotsHost>)
Records nested as a host composed inside this one, so that forgetting effects here reaches
it too. Does nothing while this host is in use.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SlotsHost
impl !RefUnwindSafe for SlotsHost
impl !Send for SlotsHost
impl !Sync for SlotsHost
impl !UnwindSafe for SlotsHost
impl Unpin for SlotsHost
impl UnsafeUnpin for SlotsHost
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