[−][src]Struct reffers::rc::RCell
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]
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
Auto Trait Implementations
impl<T: ?Sized, M> Send for RCell<T, M> where
M: Send,
T: Send,
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,
M: Unpin,
T: Unpin,
impl<T: ?Sized, M> UnwindSafe for RCell<T, M> where
M: UnwindSafe,
T: UnwindSafe,
M: UnwindSafe,
T: UnwindSafe,
impl<T, M = u8> !RefUnwindSafe for RCell<T, M>
Blanket Implementations
impl<T> Repr for T
[src]
type Store = T
fn convert(*mut T) -> *mut T
[src]
unsafe fn deallocate_mem<M>(&mut UnsafeCell<RCell<<T as Repr>::Store, M>>) where
M: BitMask,
[src]
M: BitMask,
impl<T> Repr for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,