[][src]Struct pagecache::Lazy

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

A lazily initialized value

Methods

impl<T, F> Lazy<T, F>[src]

pub const fn new(init: F) -> Self where
    F: Sized
[src]

Create a new Lazy

Trait Implementations

impl<T, F> Drop for Lazy<T, F>[src]

impl<T, F> Deref for Lazy<T, F> where
    F: Fn() -> T, 
[src]

type Target = T

The resulting type after dereferencing.

Auto Trait Implementations

impl<T, F> Unpin for Lazy<T, F> where
    F: Unpin

impl<T, F> Sync for Lazy<T, F> where
    F: Sync

impl<T, F> Send for Lazy<T, F> where
    F: Send

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

impl<T, F> RefUnwindSafe for Lazy<T, F> where
    F: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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