[][src]Struct crndm::cell::RootCell

pub struct RootCell<'a, T: 'a, A: MemPool>(_, _);

Root object container

The return value of pool's open() function is a RootCell<T> which contains a reference to the root object of type T and a reference counting object of pool type. When there is no more reference to the RootCell, it closes the underlying pool.

The root object is immutable; modifications to the root object can be provided via interior mutability.

Implementations

impl<'a, T: 'a + PSafe, A: MemPool> RootCell<'a, T, A>[src]

pub fn new(value: &'a T, pool: Arc<A>) -> Self[src]

Trait Implementations

impl<T: PSafe, A: MemPool, '_> Clone for RootCell<'_, T, A>[src]

impl<T: Debug + PSafe, A: MemPool, '_> Debug for RootCell<'_, T, A>[src]

impl<T: PSafe, A: MemPool, '_> Deref for RootCell<'_, T, A>[src]

type Target = T

The resulting type after dereferencing.

impl<T: Display + PSafe, A: MemPool, '_> Display for RootCell<'_, T, A>[src]

impl<T: PSafe + Eq, A: MemPool, '_> Eq for RootCell<'_, T, A>[src]

impl<T: Ord + PSafe, A: MemPool, '_> Ord for RootCell<'_, T, A>[src]

impl<T, A: MemPool, '_> !PSafe for RootCell<'_, T, A>[src]

impl<T: PSafe + PartialEq, A: MemPool, '_> PartialEq<RootCell<'_, T, A>> for RootCell<'_, T, A>[src]

impl<T: PSafe + PartialOrd, A: MemPool, '_> PartialOrd<RootCell<'_, T, A>> for RootCell<'_, T, A>[src]

impl<T, A: MemPool, '_> RefUnwindSafe for RootCell<'_, T, A>[src]

impl<T: PSafe + Send, A: MemPool, '_> Send for RootCell<'_, T, A>[src]

impl<T: ?Sized, A: MemPool, '_> !Sync for RootCell<'_, T, A>[src]

impl<T: PSafe, A: MemPool, '_> TxInSafe for RootCell<'_, T, A>[src]

impl<T, A: MemPool, '_> !TxOutSafe for RootCell<'_, T, A>[src]

impl<T, A: MemPool, '_> UnwindSafe for RootCell<'_, T, A>[src]

Auto Trait Implementations

impl<'a, T, A> LooseTxInUnsafe for RootCell<'a, T, A> where
    A: LooseTxInUnsafe,
    T: LooseTxInUnsafe
[src]

impl<'a, T, A> Unpin for RootCell<'a, T, A>[src]

impl<'a, T, A> VSafe for RootCell<'a, T, A> where
    A: VSafe,
    T: VSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, A> ToString<A> for T where
    A: MemPool,
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,