[][src]Struct lazy_observer::Lazy

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

Methods

impl<T> Lazy<T>[src]

pub fn new<F: 'static + Fn() -> T>(updater: F) -> Self[src]

pub fn check_update(&self)[src]

pub fn get_ref(&self) -> Ref<T>[src]

impl<T: Clone> Lazy<T>[src]

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

Trait Implementations

impl<T: Clone> Clone for Lazy<T>[src]

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

impl<T: Display> Display for Lazy<T>[src]

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

impl<T: Eq> Eq for Lazy<T>[src]

impl<T: Hash> Hash for Lazy<T>[src]

impl<T: Ord> Ord for Lazy<T>[src]

impl<T: PartialEq> PartialEq<Lazy<T>> for Lazy<T>[src]

impl<T: PartialOrd> PartialOrd<Lazy<T>> for Lazy<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Lazy<T>

impl<T> !Send for Lazy<T>

impl<T> !Sync for Lazy<T>

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

impl<T> !UnwindSafe for Lazy<T>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.