pub struct PatternMatrixRow {
pub patterns: Vec<String>,
pub body: String,
}Expand description
A pattern matrix row (for exhaustiveness checking).
Fields§
§patterns: Vec<String>Patterns in this row (one per column)
body: StringBody of this arm
Implementations§
Trait Implementations§
Source§impl Clone for PatternMatrixRow
impl Clone for PatternMatrixRow
Source§fn clone(&self) -> PatternMatrixRow
fn clone(&self) -> PatternMatrixRow
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 PatternMatrixRow
impl RefUnwindSafe for PatternMatrixRow
impl Send for PatternMatrixRow
impl Sync for PatternMatrixRow
impl Unpin for PatternMatrixRow
impl UnsafeUnpin for PatternMatrixRow
impl UnwindSafe for PatternMatrixRow
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