Struct CoreRefCell

Source
pub struct CoreRefCell<T>(/* private fields */);

Trait Implementations§

Source§

impl<T> AnyLock<T> for CoreRefCell<T>

Source§

fn new(inner: T) -> Self

Create a new lock std::sync::Mutex

Source§

type ReadGuard<'a> = Ref<'a, T> where T: 'a, Self: 'a

Source§

type WriteGuard<'a> = RefMut<'a, T> where T: 'a, Self: 'a

Source§

fn read<'a>(&'a self) -> Self::ReadGuard<'a>

Source§

fn write<'a>(&'a self) -> Self::WriteGuard<'a>

Source§

fn async_read<'a>( &'a self, ) -> Pin<Box<dyn Future<Output = Self::ReadGuard<'a>> + 'a>>

Source§

fn async_write<'a>( &'a self, ) -> Pin<Box<dyn Future<Output = Self::WriteGuard<'a>> + 'a>>

Source§

impl<T> Debug for CoreRefCell<T>
where T: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> !Freeze for CoreRefCell<T>

§

impl<T> !RefUnwindSafe for CoreRefCell<T>

§

impl<T> Send for CoreRefCell<T>
where T: Send,

§

impl<T> !Sync for CoreRefCell<T>

§

impl<T> Unpin for CoreRefCell<T>
where T: Unpin,

§

impl<T> UnwindSafe for CoreRefCell<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.