pub struct HaskellCaseAlt {
pub pattern: HaskellPattern,
pub guards: Vec<HaskellGuard>,
pub body: Option<HaskellExpr>,
}Expand description
A single alternative in a case expression.
Fields§
§pattern: HaskellPattern§guards: Vec<HaskellGuard>Guards; if empty the alternative has a direct body.
body: Option<HaskellExpr>Trait Implementations§
Source§impl Clone for HaskellCaseAlt
impl Clone for HaskellCaseAlt
Source§fn clone(&self) -> HaskellCaseAlt
fn clone(&self) -> HaskellCaseAlt
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 HaskellCaseAlt
impl Debug for HaskellCaseAlt
Source§impl PartialEq for HaskellCaseAlt
impl PartialEq for HaskellCaseAlt
impl StructuralPartialEq for HaskellCaseAlt
Auto Trait Implementations§
impl Freeze for HaskellCaseAlt
impl RefUnwindSafe for HaskellCaseAlt
impl Send for HaskellCaseAlt
impl Sync for HaskellCaseAlt
impl Unpin for HaskellCaseAlt
impl UnsafeUnpin for HaskellCaseAlt
impl UnwindSafe for HaskellCaseAlt
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