Struct tinystd::refcell::RefCell[][src]

pub struct RefCell<T> { /* fields omitted */ }

RefCell is a non thread-safe container for T

Implementations

impl<T> RefCell<T>[src]

pub fn from(value: T) -> Self[src]

wrap T in a reference cell

pub fn borrow(&self) -> Option<Ref<'_, T>>[src]

Return an immutable shared reference to T, IFF there exists no other exclusive references to T already given out

pub fn borrow_mut(&self) -> Option<RefMut<'_, T>>[src]

Return a mutable shared reference to T, IFF there exists no other exclusive references to T already given out

Auto Trait Implementations

impl<T> !RefUnwindSafe for RefCell<T>

impl<T> Send for RefCell<T> where
    T: Send

impl<T> !Sync for RefCell<T>

impl<T> Unpin for RefCell<T> where
    T: Unpin

impl<T> UnwindSafe for RefCell<T> where
    T: UnwindSafe

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, 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>,