Enum State

pub(in ::sys::thread_local::native::lazy) enum State<D>

Variants

Uninitialized
Alive
Destroyed(D)

Trait Implementations

impl<D: Clone> Clone for State<D>

fn clone(&self) -> State<D>

impl<D: Copy> Copy for State<D>

Auto Trait Implementations

impl<D> Freeze for State<D> where D: Freeze,

impl<D> RefUnwindSafe for State<D> where D: RefUnwindSafe,

impl<D> Send for State<D> where D: Send,

impl<D> Sync for State<D> where D: Sync,

impl<D> Unpin for State<D> where D: Unpin,

impl<D> UnsafeUnpin for State<D> where D: UnsafeUnpin,

impl<D> UnwindSafe for State<D> where D: UnwindSafe,

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> CloneToUninit for State<D> where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for State<D>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for State<D> where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for State<D>

impl<T> ToOwned for State<D> where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn into(self) -> U

Calls U::from(self).

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

impl<T, U> TryFrom<U> for State<D> 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<D> where U: TryFrom<T>,

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