Struct koto_parser::MatchArm [−][src]
pub struct MatchArm {
pub patterns: Vec<AstIndex>,
pub condition: Option<AstIndex>,
pub expression: AstIndex,
}
Expand description
An arm in a match expression
Fields
patterns: Vec<AstIndex>
A series of match patterns
condition: Option<AstIndex>
An optional condition for the match arm
e.g. match foo bar if check_condition bar then …
expression: AstIndex
The body of the match arm
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MatchArm
impl UnwindSafe for MatchArm
Blanket Implementations
Mutably borrows from an owned value. Read more