Enum erl_parse::cst::Pattern
[−]
[src]
pub enum Pattern { Literal(Literal), Variable(VariableToken), Tuple(Box<Tuple>), Map(Box<Map>), Record(Box<Record>), RecordFieldIndex(Box<RecordFieldIndex>), List(Box<List>), Bits(Box<Bits>), Parenthesized(Box<Parenthesized>), UnaryOpCall(Box<UnaryOpCall>), BinaryOpCall(Box<BinaryOpCall>), Match(Box<Match>), }
Variants
Literal(Literal)
Variable(VariableToken)
Tuple(Box<Tuple>)
Map(Box<Map>)
Record(Box<Record>)
RecordFieldIndex(Box<RecordFieldIndex>)
List(Box<List>)
Bits(Box<Bits>)
Parenthesized(Box<Parenthesized>)
UnaryOpCall(Box<UnaryOpCall>)
BinaryOpCall(Box<BinaryOpCall>)
Match(Box<Match>)
Trait Implementations
impl Debug for Pattern
[src]
impl Clone for Pattern
[src]
fn clone(&self) -> Pattern
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Parse for Pattern
[src]
fn parse_non_left_recor<T>(parser: &mut Parser<T>) -> Result<Self> where
T: TokenRead,
[src]
T: TokenRead,
fn parse<T>(parser: &mut Parser<T>) -> Result<Self> where
T: TokenRead,
[src]
T: TokenRead,
impl PositionRange for Pattern
[src]
fn start_position(&self) -> Position
[src]
Returns the (inclusive) start position of this.
fn end_position(&self) -> Position
[src]
Returns the (exclusive) end position of this.