#[repr(C)]pub struct Root { /* private fields */ }
Expand description
A Root is a ![Sync]
token. Proof of access to a Root is used
to inexpensively ensure safety of safety in rc::RootedRc and
refcell::RootedRefCell.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Root
impl !RefUnwindSafe for Root
impl Send for Root
impl !Sync for Root
impl Unpin for Root
impl UnwindSafe for Root
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