[−][src]Struct evaluator::DummyEval
Implements dummy evaluation of clonable and non-clonable types: every time the eval()
method is called, a fixed value is returned.
Trait Implementations
impl<Out> Evaluator for DummyEval<Out> where
Out: Clone,
[src]
Out: Clone,
type Output = Out
The type that the evaluator evaluates to.
fn eval(&mut self) -> Self::Output
[src]
Evaluates and returns the result. This includes the overhead of cloning the value, because the fixed value must be preserved.
Because caching evaluators, as their name suggests, store the cached value inside themselves, a mutable borrow of self
is required.
Panics
May panic only if cloning of the inner value panics.
impl<Out> From<Out> for DummyEval<Out>
[src]
Auto Trait Implementations
impl<Out> RefUnwindSafe for DummyEval<Out> where
Out: RefUnwindSafe,
Out: RefUnwindSafe,
impl<Out> Send for DummyEval<Out> where
Out: Send,
Out: Send,
impl<Out> Sync for DummyEval<Out> where
Out: Sync,
Out: Sync,
impl<Out> Unpin for DummyEval<Out> where
Out: Unpin,
Out: Unpin,
impl<Out> UnwindSafe for DummyEval<Out> where
Out: UnwindSafe,
Out: UnwindSafe,
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<!> for 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, 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>,