pub struct Match {
pub typ: QualifiedIdent,
pub scrutinee: Ident,
pub value: Option<Box<Expr>>,
pub with_vars: Vec<(Ident, Option<Box<Expr>>)>,
pub cases: Vec<Case>,
pub motive: Option<Box<Expr>>,
}
Expand description
A match block that will be desugared into an eliminator of a datatype.
Fields§
§typ: QualifiedIdent
§scrutinee: Ident
§value: Option<Box<Expr>>
§with_vars: Vec<(Ident, Option<Box<Expr>>)>
§cases: Vec<Case>
§motive: Option<Box<Expr>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Match
impl RefUnwindSafe for Match
impl Send for Match
impl Sync for Match
impl Unpin for Match
impl UnwindSafe for Match
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