Struct fuzzy_pickles::ast::Match
source · pub struct Match {
pub extent: Extent,
pub head: Box<Attributed<Expression>>,
pub arms: Vec<MatchArm>,
pub whitespace: Vec<Whitespace>,
}
Expand description
Pattern-matching conditional control flow
Example Source
ⓘ
fn a() { match 1 { 0 => true, 1 => { false } _ => true } }
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Fields§
§extent: Extent
§head: Box<Attributed<Expression>>
§arms: Vec<MatchArm>
§whitespace: Vec<Whitespace>