[][src]Struct sgx_tstd::io::Lazy

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

Methods

impl<T> Lazy<T>[src]

pub const fn new() -> Lazy<T>[src]

impl<T: Send + Sync + 'static> Lazy<T>[src]

pub unsafe fn get(&'static self, init: fn() -> Arc<T>) -> Option<Arc<T>>[src]

Safety: init must not call get on the variable that is being initialized.

Trait Implementations

impl<T> Sync for Lazy<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Lazy<T>

impl<T> !Send for Lazy<T>

impl<T> Unpin for Lazy<T>

impl<T> UnwindSafe for Lazy<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.