pub struct Rooted<T> { /* private fields */ }Expand description
A handle to a heap object that guarantees the object will not be cleaned up by the garbage collector.
Rooted may be cheaply copied as is necessary to serve your needs. It’s even legal for it
to outlive the object it refers to, provided it is no longer used to access it afterwards.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Rooted<T>
impl<T> RefUnwindSafe for Rooted<T>where
T: RefUnwindSafe,
impl<T> !Send for Rooted<T>
impl<T> !Sync for Rooted<T>
impl<T> Unpin for Rooted<T>
impl<T> UnwindSafe for Rooted<T>where
T: RefUnwindSafe,
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