pub struct Rooted<'a> { /* private fields */ }Expand description
RAII guard for a rooted value; see Host::rooted.
Holds the vtable (not the Host borrow), so re-entering &mut Host
methods remain callable while guards are alive.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Send for Rooted<'a>
impl<'a> !Sync for Rooted<'a>
impl<'a> Freeze for Rooted<'a>
impl<'a> RefUnwindSafe for Rooted<'a>
impl<'a> Unpin for Rooted<'a>
impl<'a> UnsafeUnpin for Rooted<'a>
impl<'a> UnwindSafe for Rooted<'a>
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