Struct shadow_shim_helper_rs::rootedcell::cell::RootedCell
source · #[repr(C)]pub struct RootedCell<T> { /* private fields */ }
Expand description
Analagous to std::cell::Cell. In particular like std::cell::Cell, it doesn’t perform any atomic operations internally, making it relatively inexpensive.
Unlike std::cell::Cell, this type is Send and Sync if T
is
Send. This is safe because the owner is required to prove access to the
associated Root, which is ![Sync]
, to access.
Implementations§
source§impl<T> RootedCell<T>
impl<T> RootedCell<T>
Trait Implementations§
source§impl<T: Debug> Debug for RootedCell<T>
impl<T: Debug> Debug for RootedCell<T>
impl<T> Send for RootedCell<T>
impl<T> Sync for RootedCell<T>
Auto Trait Implementations§
impl<T> !Freeze for RootedCell<T>
impl<T> !RefUnwindSafe for RootedCell<T>
impl<T> Unpin for RootedCell<T>where
T: Unpin,
impl<T> UnwindSafe for RootedCell<T>where
T: UnwindSafe,
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