Struct once_cell::sync::OnceCell[][src]

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

Methods

impl<T> OnceCell<T>
[src]

INIT: OnceCell<T> = OnceCell{inner: <AtomicPtr>::new(ptr::null_mut()), once: <Once>::new(),}

Guarantees that only one f is ever called.

Trait Implementations

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

Formats the value using the given formatter. Read more

impl<T: Sync + Send> Sync for OnceCell<T>
[src]

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

impl<T> Drop for OnceCell<T>
[src]

Executes the destructor for this type. Read more