Enum skiff::ast::Pattern [−][src]
pub enum Pattern {
NumLiteral(i64),
BoolLiteral(bool),
Data(String, Vec<Pattern>),
Identifier(String),
}
Variants
NumLiteral(i64)
Tuple Fields of NumLiteral
0: i64
BoolLiteral(bool)
Tuple Fields of BoolLiteral
0: bool
Identifier(String)
Tuple Fields of Identifier
0: String
Implementations
Returns true
if the pattern is [NumLiteral
].
Returns true
if the pattern is [BoolLiteral
].
Returns true
if the pattern is Identifier
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Pattern
impl UnwindSafe for Pattern
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self