Struct fuzzy_pickles::ast::Pattern
source · pub struct Pattern {
pub extent: Extent,
pub name: Option<PatternName>,
pub kind: PatternKind,
pub whitespace: Vec<Whitespace>,
}
Expand description
A component used in pattern matching
Example Source
ⓘ
fn a(mut b: i32) { if let Some(foo) = x {} }
// ^^^^^ ^^^^^^^^^
Fields§
§extent: Extent
§name: Option<PatternName>
§kind: PatternKind
§whitespace: Vec<Whitespace>