Struct fuzzy_pickles::ast::IfLet
source · pub struct IfLet {
pub extent: Extent,
pub pattern: Pattern,
pub value: Box<Attributed<Expression>>,
pub body: Box<Block>,
pub whitespace: Vec<Whitespace>,
}
Expand description
The conditional, pattern-matching variable scope
Example Source
ⓘ
fn a() { if let Some(name) = current_player {} }
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Fields§
§extent: Extent
§pattern: Pattern
§value: Box<Attributed<Expression>>
§body: Box<Block>
§whitespace: Vec<Whitespace>