Struct fuzzy_pickles::ast::PatternStruct
source · pub struct PatternStruct {
pub extent: Extent,
pub name: PathedIdent,
pub fields: Vec<PatternStructField>,
pub wildcard: bool,
pub whitespace: Vec<Whitespace>,
}
Expand description
Pattern matching against a struct
Example Source
ⓘ
fn a() { let Monster { name, .. }; }
// ^^^^^^^^^^^^^^^^^^^^
Fields§
§extent: Extent
§name: PathedIdent
§fields: Vec<PatternStructField>
§wildcard: bool
§whitespace: Vec<Whitespace>