pub struct PatternRow {
pub patterns: Vec<Pattern>,
pub body: SurfaceExpr,
pub guard: Option<SurfaceExpr>,
}Expand description
A row in the pattern matrix.
Fields§
§patterns: Vec<Pattern>The patterns for each column
body: SurfaceExprThe body expression for this row
guard: Option<SurfaceExpr>Optional guard expression
Trait Implementations§
Source§impl Clone for PatternRow
impl Clone for PatternRow
Source§fn clone(&self) -> PatternRow
fn clone(&self) -> PatternRow
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 PatternRow
impl RefUnwindSafe for PatternRow
impl Send for PatternRow
impl Sync for PatternRow
impl Unpin for PatternRow
impl UnsafeUnpin for PatternRow
impl UnwindSafe for PatternRow
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