Struct rin_util::LazyUpdate[][src]

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

A Lazy value that defers updates until the result is needed for the first time

Implementations

impl<T> LazyUpdate<T>[src]

pub fn new(v: T) -> LazyUpdate<T>[src]

pub fn new_dirty(v: T) -> LazyUpdate<T>[src]

pub fn set_changed(&self)[src]

pub fn update<F>(&self, f: F) where
    F: FnMut(&mut T), 
[src]

Trait Implementations

impl<T> AsMut<T> for LazyUpdate<T>[src]

impl<T> AsRef<T> for LazyUpdate<T>[src]

impl<T> Borrow<T> for LazyUpdate<T>[src]

impl<T> BorrowMut<T> for LazyUpdate<T>[src]

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

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

impl<T> Deref for LazyUpdate<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T> DerefMut for LazyUpdate<T>[src]

impl<'a, T: Deserialize<'a>> Deserialize<'a> for LazyUpdate<T>[src]

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

impl<T: Serialize> Serialize for LazyUpdate<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for LazyUpdate<T>

impl<T> Send for LazyUpdate<T> where
    T: Send

impl<T> !Sync for LazyUpdate<T>

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

impl<T> UnwindSafe for LazyUpdate<T> where
    T: UnwindSafe

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<!> for T[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, 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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]