pub struct RootCell<'a, T: 'a, A: MemPool>(_, _);
Expand description
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
Trait Implementations
sourceimpl<T: Ord + PSafe, A: MemPool> Ord for RootCell<'_, T, A>
impl<T: Ord + PSafe, A: MemPool> Ord for RootCell<'_, T, A>
sourceimpl<T: PSafe + PartialOrd, A: MemPool> PartialOrd<RootCell<'_, T, A>> for RootCell<'_, T, A>
impl<T: PSafe + PartialOrd, A: MemPool> PartialOrd<RootCell<'_, T, A>> for RootCell<'_, T, A>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: PSafe + Eq, A: MemPool> Eq for RootCell<'_, T, A>
impl<T, A: MemPool> !PSafe for RootCell<'_, T, A>
impl<T, A: MemPool> RefUnwindSafe for RootCell<'_, T, A>
impl<T: PSafe + Send, A: MemPool> Send for RootCell<'_, T, A>
impl<T: ?Sized, A: MemPool> !Sync for RootCell<'_, T, A>
impl<T: PSafe, A: MemPool> TxInSafe for RootCell<'_, T, A>
impl<T, A: MemPool> !TxOutSafe for RootCell<'_, T, A>
impl<T, A: MemPool> UnwindSafe for RootCell<'_, T, A>
Auto Trait Implementations
impl<'a, T, A> LooseTxInUnsafe for RootCell<'a, T, A> where
T: LooseTxInUnsafe,
impl<'a, T, A> PSend for RootCell<'a, T, A> where
A: PSend,
T: PSend,
impl<'a, T, A> Unpin for RootCell<'a, T, A>
impl<'a, T, A> VSafe for RootCell<'a, T, A> where
A: VSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more