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

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

Methods

impl<T> OnceCell<T>
[src]

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

Trait Implementations

impl<T: Debug> Debug for OnceCell<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Default> Default for OnceCell<T>
[src]

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>