pub struct MatchArm<'a> {
pub enum_name: Option<Symbol>,
pub variant: Option<Symbol>,
pub bindings: Vec<(Symbol, Symbol)>,
pub body: Block<'a>,
}Expand description
Match arm for pattern matching in Inspect statements.
Fields§
§enum_name: Option<Symbol>§variant: Option<Symbol>§bindings: Vec<(Symbol, Symbol)>§body: Block<'a>Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MatchArm<'a>
impl<'a> RefUnwindSafe for MatchArm<'a>
impl<'a> Send for MatchArm<'a>
impl<'a> Sync for MatchArm<'a>
impl<'a> Unpin for MatchArm<'a>
impl<'a> UnwindSafe for MatchArm<'a>
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