[][src]Struct reax::computed::FunctionComputed

pub struct FunctionComputed<T, F, C> { /* fields omitted */ }

A computed T which is produced by some function F.

Created by the ComputedVar::new function or computed macro.

Implementations

impl<T, F, C> FunctionComputed<T, F, C> where
    F: FnMut(&mut C) -> T, 
[src]

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

Creates the computed T.

Trait Implementations

impl<T, F, C> ComputedValue for FunctionComputed<T, F, C> where
    F: FnMut(&mut C) -> T, 
[src]

type Value = T

The value visible within the ComputedVar.

type Context = C

The context used by the update function.

Auto Trait Implementations

impl<T, F, C> RefUnwindSafe for FunctionComputed<T, F, C> where
    C: RefUnwindSafe,
    F: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, F, C> Send for FunctionComputed<T, F, C> where
    C: Send,
    F: Send,
    T: Send

impl<T, F, C> Sync for FunctionComputed<T, F, C> where
    C: Sync,
    F: Sync,
    T: Sync

impl<T, F, C> Unpin for FunctionComputed<T, F, C> where
    C: Unpin,
    F: Unpin,
    T: Unpin

impl<T, F, C> UnwindSafe for FunctionComputed<T, F, C> where
    C: UnwindSafe,
    F: UnwindSafe,
    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<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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.