[−][src]Struct lazy_observer::Lazy
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]
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]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: Ord> Ord for Lazy<T>
[src]
fn cmp(&self, other: &Lazy<T>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[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,
T: Unpin,
impl<T> !UnwindSafe for Lazy<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,