Struct sublock::atomlock::SubCell [] [src]

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

Methods

impl<T> SubCell<T>

fn new<'a>(liveness: &Arc<Liveness>, value: T) -> Self

fn borrow(&self) -> Ref<T>

fn borrow_mut(&self) -> RefMut<T>

Trait Implementations

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.