[][src]Struct reffers::rc::RCell

pub struct RCell<T: ?Sized, M: BitMask = u8> { /* fields omitted */ }

This is the "Cell" part of the Rc, which can be used separately if you just need a Cell without the reference counting part.

This is very much like a RefCell, but with poisoning support and customisable overhead.

Methods

impl<T, M: BitMask> RCell<T, M>[src]

pub fn new(t: T) -> Self[src]

impl<T: ?Sized, M: BitMask> RCell<T, M>[src]

pub fn state(&self) -> State[src]

pub fn try_get<'a>(&'a self) -> Result<RCellRef<'a, T, M>, State>[src]

pub fn try_get_mut<'a>(&'a self) -> Result<RCellRefMut<'a, T, M>, State>[src]

pub fn unpoison(&self) -> Result<(), State>[src]

Trait Implementations

impl<T: Debug + ?Sized, M: Debug + BitMask> Debug for RCell<T, M>[src]

Auto Trait Implementations

impl<T: ?Sized, M> Send for RCell<T, M> where
    M: Send,
    T: Send

impl<T, M = u8> !Sync for RCell<T, M>

impl<T: ?Sized, M> Unpin for RCell<T, M> where
    M: Unpin,
    T: Unpin

impl<T: ?Sized, M> UnwindSafe for RCell<T, M> where
    M: UnwindSafe,
    T: UnwindSafe

impl<T, M = u8> !RefUnwindSafe for RCell<T, M>

Blanket Implementations

impl<T> Repr for T[src]

type Store = T

impl<T> Repr for T[src]

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

impl<T> From<T> for T[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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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