Enum passerine::compiler::cst::CSTPattern [−][src]
pub enum CSTPattern {
Symbol(String),
Data(Data),
Label(String, Box<Spanned<CSTPattern>>),
Tuple(Vec<Spanned<CSTPattern>>),
}
Expand description
A pattern that mirrors the structure of some Data.
Variants
Symbol(String)
Tuple Fields of Symbol
0: String
Data(Data)
Tuple Fields of Data
0: Data
Label(String, Box<Spanned<CSTPattern>>)
Tuple Fields of Label
0: String
1: Box<Spanned<CSTPattern>>
Tuple(Vec<Spanned<CSTPattern>>)
Tuple Fields of Tuple
0: Vec<Spanned<CSTPattern>>
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl !RefUnwindSafe for CSTPattern
impl !Send for CSTPattern
impl !Sync for CSTPattern
impl Unpin for CSTPattern
impl !UnwindSafe for CSTPattern
Blanket Implementations
Mutably borrows from an owned value. Read more