pub enum ComputationExprKind {
Async,
Seq,
Result,
OptionCe,
Custom(String),
}Expand description
A computation expression kind.
Variants§
Async
async { ... } — asynchronous computation.
Seq
seq { ... } — lazy sequence.
Result
result { ... } — result monad.
OptionCe
option { ... } — option monad.
Custom(String)
Custom builder: builder { ... }.
Trait Implementations§
Source§impl Clone for ComputationExprKind
impl Clone for ComputationExprKind
Source§fn clone(&self) -> ComputationExprKind
fn clone(&self) -> ComputationExprKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComputationExprKind
impl Debug for ComputationExprKind
Source§impl Display for ComputationExprKind
impl Display for ComputationExprKind
Source§impl PartialEq for ComputationExprKind
impl PartialEq for ComputationExprKind
impl StructuralPartialEq for ComputationExprKind
Auto Trait Implementations§
impl Freeze for ComputationExprKind
impl RefUnwindSafe for ComputationExprKind
impl Send for ComputationExprKind
impl Sync for ComputationExprKind
impl Unpin for ComputationExprKind
impl UnsafeUnpin for ComputationExprKind
impl UnwindSafe for ComputationExprKind
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