[][src]Trait once_self_cell::OnceCellCompatible

pub trait OnceCellCompatible<T> {
    pub fn new() -> Self;
pub fn get(&self) -> Option<&T>;
pub fn get_or_init<F>(&self, f: F) -> &T
    where
        F: FnOnce() -> T
;
pub fn take(&mut self) -> Option<T>; }

Required methods

pub fn new() -> Self[src]

pub fn get(&self) -> Option<&T>[src]

pub fn get_or_init<F>(&self, f: F) -> &T where
    F: FnOnce() -> T, 
[src]

pub fn take(&mut self) -> Option<T>[src]

Loading content...

Implementors

impl OnceCellCompatible<(*mut u8, fn(*mut u8))> for SyncOnceCell[src]

impl OnceCellCompatible<(*mut u8, fn(*mut u8))> for UnsyncOnceCell[src]

Loading content...