pub struct MatchArm {
pub pattern: Pat,
pub guard: Option<Local>,
pub body: BasicBlockId,
pub bindings: Vec<(String, Local)>,
pub span: Span,
}Expand description
A match arm for lowering
Fields§
§pattern: PatThe pattern
guard: Option<Local>Guard expression (if any) - represented as a local containing the guard result
body: BasicBlockIdBody block ID
bindings: Vec<(String, Local)>Bindings to be set before entering the body
span: SpanSpan
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MatchArm
impl RefUnwindSafe for MatchArm
impl Send for MatchArm
impl Sync for MatchArm
impl Unpin for MatchArm
impl UnwindSafe for MatchArm
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