Struct once_cell::unsync::OnceCell[][src]

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


impl<T> OnceCell<T>

INIT: OnceCell<T> = OnceCell{inner: <UnsafeCell>::new(None),}

Trait Implementations

impl<T: Debug> Debug for OnceCell<T>

Formats the value using the given formatter. Read more

impl<T: Default> Default for OnceCell<T>

Returns the "default value" for a type. Read more

Auto Trait Implementations

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

impl<T> !Sync for OnceCell<T>