Struct observatory::DerivationPtr[][src]

pub struct DerivationPtr<T: IsUnchanged + 'static, F: FnMut() -> T + 'static> { /* fields omitted */ }

Implementations

impl<T: IsUnchanged + 'static, F: FnMut() -> T + 'static> DerivationPtr<T, F>[src]

pub fn new(compute_value: F) -> Self[src]

pub fn new_dyn(
    compute_value: F
) -> DerivationPtr<T, Box<dyn FnMut() -> T + 'static>>
[src]

pub fn computed(compute_value: F) -> Self[src]

pub fn borrow(&self) -> Ref<'_, T>[src]

pub fn borrow_untracked(&self) -> Ref<'_, T>[src]

Trait Implementations

impl<T: IsUnchanged + 'static, F: FnMut() -> T + 'static> Clone for DerivationPtr<T, F>[src]

Auto Trait Implementations

impl<T, F> !RefUnwindSafe for DerivationPtr<T, F>

impl<T, F> !Send for DerivationPtr<T, F>

impl<T, F> !Sync for DerivationPtr<T, F>

impl<T, F> Unpin for DerivationPtr<T, F>

impl<T, F> !UnwindSafe for DerivationPtr<T, F>

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> Pointable for T

type Init = T

The type for initializers.

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.