pub struct MatchClause {
pub optional: bool,
pub mode: Option<Node<PathMode>>,
pub pattern: Pattern,
pub hints: Vec<MatchHint>,
pub where_clause: Option<Expr>,
}Expand description
A MATCH clause.
Fields§
§optional: bool§mode: Option<Node<PathMode>>§pattern: Pattern§hints: Vec<MatchHint>§where_clause: Option<Expr>Trait Implementations§
Source§impl Clone for MatchClause
impl Clone for MatchClause
Source§impl Debug for MatchClause
impl Debug for MatchClause
impl Eq for MatchClause
Source§impl Hash for MatchClause
impl Hash for MatchClause
Source§impl PartialEq for MatchClause
impl PartialEq for MatchClause
impl StructuralPartialEq for MatchClause
Auto Trait Implementations§
impl Freeze for MatchClause
impl RefUnwindSafe for MatchClause
impl Send for MatchClause
impl Sync for MatchClause
impl Unpin for MatchClause
impl UnsafeUnpin for MatchClause
impl UnwindSafe for MatchClause
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