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]
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]
F: FnMut(&mut T),
Trait Implementations
impl<T> BorrowMut<T> for LazyUpdate<T>
[src]
impl<T> BorrowMut<T> for LazyUpdate<T>
[src]fn borrow_mut(&mut self) -> &mut T
[src]
impl<T: Clone> Clone for LazyUpdate<T>
[src]
impl<T: Clone> Clone for LazyUpdate<T>
[src]fn clone(&self) -> LazyUpdate<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Deref for LazyUpdate<T>
[src]
impl<T> Deref for LazyUpdate<T>
[src]impl<'a, T: Deserialize<'a>> Deserialize<'a> for LazyUpdate<T>
[src]
impl<'a, T: Deserialize<'a>> Deserialize<'a> for LazyUpdate<T>
[src]fn deserialize<S: Deserializer<'a>>(
deserializer: S
) -> Result<Self, <S as Deserializer<'a>>::Error>
[src]
deserializer: S
) -> Result<Self, <S as Deserializer<'a>>::Error>
impl<T> From<T> for LazyUpdate<T>
[src]
impl<T> From<T> for LazyUpdate<T>
[src]fn from(t: T) -> LazyUpdate<T>
[src]
impl<T: Serialize> Serialize for LazyUpdate<T>
[src]
impl<T: Serialize> Serialize for LazyUpdate<T>
[src]fn serialize<S: Serializer>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
Auto Trait Implementations
impl<T> !RefUnwindSafe for LazyUpdate<T>
impl<T> Send for LazyUpdate<T> where
T: Send,
T: Send,
impl<T> !Sync for LazyUpdate<T>
impl<T> Unpin for LazyUpdate<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for LazyUpdate<T> where
T: UnwindSafe,
T: UnwindSafe,