Struct loom::sync::CausalCell
source · pub struct CausalCell<T> { /* private fields */ }
Expand description
Cell that ensures access to the inner value are valid under the Rust memory model.
Implementations
sourceimpl<T> CausalCell<T>
impl<T> CausalCell<T>
sourcepub fn new(data: T) -> CausalCell<T>
pub fn new(data: T) -> CausalCell<T>
Construct a new instance of CausalCell
which will wrap the specified
value.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for CausalCell<T>
impl<T> Send for CausalCell<T>where
T: Send,
impl<T> !Sync for CausalCell<T>
impl<T> Unpin for CausalCell<T>where
T: Unpin,
impl<T> UnwindSafe for CausalCell<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more