pub enum EvalMode {
Lazy,
Strict,
}Expand description
Specification for how to handle top-level values returned by evaluation
Variants§
Lazy
The default. Values are returned from evaluations as-is, without any extra forcing or special handling.
Strict
Strictly and deeply evaluate top-level values returned by evaluation.
Trait Implementations§
impl Copy for EvalMode
Auto Trait Implementations§
impl Freeze for EvalMode
impl RefUnwindSafe for EvalMode
impl Send for EvalMode
impl Sync for EvalMode
impl Unpin for EvalMode
impl UnwindSafe for EvalMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more