pub struct Arm {
pub pattern: Pat,
pub guard: Option<Expr>,
pub body: Expr,
pub span: Span,
}Expand description
An arm of a match.
Fields§
§pattern: PatThe pattern.
guard: Option<Expr>if guard.
body: ExprThe result.
span: SpanThe whole arm.
Trait Implementations§
impl StructuralPartialEq for Arm
Auto Trait Implementations§
impl Freeze for Arm
impl RefUnwindSafe for Arm
impl Send for Arm
impl Sync for Arm
impl Unpin for Arm
impl UnsafeUnpin for Arm
impl UnwindSafe for Arm
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