pub struct MatchArm {
pub pattern: Pattern,
pub guard: Option<Box<Expr>>,
pub body: Box<Expr>,
pub pattern_span: Option<Span>,
}Expand description
Match arm
Fields§
§pattern: Pattern§guard: Option<Box<Expr>>§body: Box<Expr>§pattern_span: Option<Span>Span of the pattern portion (for error reporting)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MatchArm
impl<'de> Deserialize<'de> for MatchArm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for MatchArm
Auto Trait Implementations§
impl Freeze for MatchArm
impl RefUnwindSafe for MatchArm
impl Send for MatchArm
impl Sync for MatchArm
impl Unpin for MatchArm
impl UnsafeUnpin 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