pub struct BeamClause {
pub pattern: BeamPattern,
pub guard: Option<BeamExpr>,
pub body: BeamExpr,
}Expand description
A pattern-matching clause in a case expression.
Fields§
§pattern: BeamPatternPattern to match against
guard: Option<BeamExpr>Optional guard expression
body: BeamExprBody expression evaluated on match
Trait Implementations§
Source§impl Clone for BeamClause
impl Clone for BeamClause
Source§fn clone(&self) -> BeamClause
fn clone(&self) -> BeamClause
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 moreAuto Trait Implementations§
impl Freeze for BeamClause
impl RefUnwindSafe for BeamClause
impl Send for BeamClause
impl Sync for BeamClause
impl Unpin for BeamClause
impl UnsafeUnpin for BeamClause
impl UnwindSafe for BeamClause
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