Enum State
pub(in ::cell::lazy) enum State<T, F>
Variants
-
Uninit(F) -
Init(T) -
Poisoned
Auto Trait Implementations
impl<T, F> Freeze for State<T, F>
where
F: Freeze,
T: Freeze,
impl<T, F> RefUnwindSafe for State<T, F>
where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, F> Send for State<T, F>
where
F: Send,
T: Send,
impl<T, F> Sync for State<T, F>
where
F: Sync,
T: Sync,
impl<T, F> Unpin for State<T, F>
where
F: Unpin,
T: Unpin,
impl<T, F> UnsafeUnpin for State<T, F>
where
F: UnsafeUnpin,
T: UnsafeUnpin,
impl<T, F> UnwindSafe for State<T, F>
where
F: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for State<T, F>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for State<T, F>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for State<T, F>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for State<T, F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for State<T, F>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for State<T, F>
impl<T, U> Into<U> for State<T, F>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for State<T, F>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for State<T, F>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>