[][src]Struct evaluator::ImmEval

pub struct ImmEval<Out, Cl> where
    Cl: FnMut() -> Out, 
{ /* fields omitted */ }

Implements immediate evaluation via closures.

Trait Implementations

impl<Out, Cl> Evaluator for ImmEval<Out, Cl> where
    Cl: FnMut() -> Out, 
[src]

type Output = Out

The type that the evaluator evaluates to.

fn eval(&mut self) -> Self::Output[src]

Evaluates and returns the result. Because evaluators may possibly involve caching, a mutable borrow of self is required by the Evaluator trait, though immediate evaluators do not involve any.

Panics

Panicking of this function is not defined or restricted and depends on the closure.

impl<Out, Cl> From<Cl> for ImmEval<Out, Cl> where
    Cl: FnMut() -> Out, 
[src]

fn from(cl: Cl) -> Self[src]

Constructs the evaluator from the specified closure.

Auto Trait Implementations

impl<Out, Cl> RefUnwindSafe for ImmEval<Out, Cl> where
    Cl: RefUnwindSafe

impl<Out, Cl> Send for ImmEval<Out, Cl> where
    Cl: Send

impl<Out, Cl> Sync for ImmEval<Out, Cl> where
    Cl: Sync

impl<Out, Cl> Unpin for ImmEval<Out, Cl> where
    Cl: Unpin

impl<Out, Cl> UnwindSafe for ImmEval<Out, Cl> where
    Cl: 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<!> for T[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.