pub enum ForceMode {
Lift,
Scalar,
Strict,
}Expand description
How leniently a value is coerced to syntax.
Variants§
Lift
lift: scalars fold, a pair is built, a closure η-expands.
Scalar
What a staged site requires of a result. Stops short of
Lift at closures: η-expanding one would compile a
function nobody asked to compile, freezing its semantics.
Strict
force-code: code or an error, so a branch that fails to produce code
is caught rather than silently η-expanded.
Trait Implementations§
impl Copy for ForceMode
impl Eq for ForceMode
impl StructuralPartialEq for ForceMode
Auto Trait Implementations§
impl Freeze for ForceMode
impl RefUnwindSafe for ForceMode
impl Send for ForceMode
impl Sync for ForceMode
impl Unpin for ForceMode
impl UnwindSafe for ForceMode
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