Struct rinutil::Lazy [−][src]
pub struct Lazy<T> { /* fields omitted */ }
Methods
impl<T> Lazy<T>
[src]
impl<T> Lazy<T>
pub fn new(v: T) -> Lazy<T>
[src]
pub fn new(v: T) -> Lazy<T>
pub fn new_dirty(v: T) -> Lazy<T>
[src]
pub fn new_dirty(v: T) -> Lazy<T>
pub fn set_changed(&self)
[src]
pub fn set_changed(&self)
pub fn update<F>(&self, f: F) where
F: FnMut(&mut T),
[src]
pub fn update<F>(&self, f: F) where
F: FnMut(&mut T),
Trait Implementations
impl<T: Debug> Debug for Lazy<T>
[src]
impl<T: Debug> Debug for Lazy<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Clone> Clone for Lazy<T>
[src]
impl<T: Clone> Clone for Lazy<T>
fn clone(&self) -> Lazy<T>
[src]
fn clone(&self) -> Lazy<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T> Borrow<T> for Lazy<T>
[src]
impl<T> Borrow<T> for Lazy<T>
impl<T> BorrowMut<T> for Lazy<T>
[src]
impl<T> BorrowMut<T> for Lazy<T>
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Deref for Lazy<T>
[src]
impl<T> Deref for Lazy<T>
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
fn deref(&self) -> &T
Dereferences the value.
impl<T> DerefMut for Lazy<T>
[src]
impl<T> DerefMut for Lazy<T>
impl<T> AsRef<T> for Lazy<T>
[src]
impl<T> AsRef<T> for Lazy<T>
impl<T> AsMut<T> for Lazy<T>
[src]
impl<T> AsMut<T> for Lazy<T>
impl<T> From<T> for Lazy<T>
[src]
impl<T> From<T> for Lazy<T>