pub enum Lazy {
Variable(Variable),
UnwrapOk,
UnwrapErr,
UnwrapSome,
}
Expand description
Lazy invariant.
Variants§
Variable(Variable)
Return a variable if result of argument is equal to the variable.
UnwrapOk
Unwrap the Ok result.
UnwrapErr
Unwrap the Err result.
UnwrapSome
Unwrap the Some option.
Trait Implementations§
source§impl PartialEq<Lazy> for Lazy
impl PartialEq<Lazy> for Lazy
impl StructuralPartialEq for Lazy
impl Sync for Lazy
This is requires because UnsafeRef(*mut Variable)
can not be sent across threads.
The lack of UnsafeRef
variant when sending across threads is guaranteed at language level.
The interior of UnsafeRef
can not be accessed outside this library.
Auto Trait Implementations§
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