Struct fuzzy_pickles::ast::MatchArm
source · pub struct MatchArm {
pub extent: Extent,
pub attributes: Vec<Attribute>,
pub pattern: Vec<Pattern>,
pub guard: Option<Attributed<Expression>>,
pub hand: MatchHand,
pub whitespace: Vec<Whitespace>,
}
Expand description
A single pattern of a match
Example Source
ⓘ
fn a() { match 1 { 0 if false => true, _ => { true } } }
// ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^
Fields§
§extent: Extent
§attributes: Vec<Attribute>
§pattern: Vec<Pattern>
§guard: Option<Attributed<Expression>>
§hand: MatchHand
§whitespace: Vec<Whitespace>