pub struct MatchArm {
pub v: String,
pub ty: Option<TypeAst>,
pub body: Rc<Expr>,
}Expand description
an arm of a match
Fields§
§v: Stringthe variable
ty: Option<TypeAst>the type it matches; none for the catch-all
body: Rc<Expr>the body
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MatchArm
impl !Send for MatchArm
impl !Sync for MatchArm
impl !UnwindSafe for MatchArm
impl Freeze for MatchArm
impl Unpin for MatchArm
impl UnsafeUnpin 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