Enum rush_pat::pat::Pat
[−]
[src]
pub enum Pat { Tup(Vec<Pat>), ID(String), Str(String), StrList(Vec<String>), Wild(Vec<Pat>), Bind(String, Box<Pat>), Rng(Range), Rex(RegexEq), }
Variants
Tup(Vec<Pat>)
ID(String)
Str(String)
StrList(Vec<String>)
Wild(Vec<Pat>)
Bind(String, Box<Pat>)
Rng(Range)
Rex(RegexEq)
Methods
impl Pat
[src]
fn get_id(&self) -> Option<&str>
fn get_str(&self) -> Option<&str>
fn get_atom(&self) -> Option<&str>
fn is_wild(&self) -> bool
Trait Implementations
impl Debug for Pat
[src]
impl Clone for Pat
[src]
fn clone(&self) -> Pat
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Pat
[src]
fn eq(&self, __arg_0: &Pat) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Pat) -> bool
This method tests for !=
.