Struct sublock::prooflock::SubCell [] [src]

pub struct SubCell<T> {
    // some fields omitted
}

Methods

impl<T> SubCell<T>

fn new<'a>(proof: &ProofMut<'a>, value: T) -> Self

Trait Implementations

impl<'b, T> ProofBorrow<Proof<'b>, T> for SubCell<T>

fn borrow<'a>(&'a self, proof: &Proof<'b>) -> Ref<'a, T>

impl<'b, T> ProofBorrow<ProofMut<'b>, T> for SubCell<T>

fn borrow<'a>(&'a self, proof: &ProofMut<'b>) -> Ref<'a, T>

impl<'b, T> ProofBorrowMut<ProofMut<'b>, T> for SubCell<T>

fn borrow_mut<'a>(&'a self, proof: &ProofMut<'b>) -> RefMut<'a, T>

impl<T> Send for SubCell<T> where T: Send + Sync

With respect to Send and Sync, SubCell behaves as a RwLock.

impl<T> Sync for SubCell<T> where T: Send + Sync

With respect to Send and Sync, SubCell behaves as a RwLock.