Enum erl_pp::types::MacroName
[−]
[src]
pub enum MacroName { Atom(AtomToken), Variable(VariableToken), }
The list of tokens that can be used as a macro name.
Variants
Atom(AtomToken)
Variable(VariableToken)
Methods
impl MacroName
[src]
fn value(&self) -> &str
Returns the value of this token.
fn text(&self) -> &str
Returns the original textual representation of this token.
Trait Implementations
impl Debug for MacroName
[src]
impl Clone for MacroName
[src]
fn clone(&self) -> MacroName
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 MacroName
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for MacroName
[src]
impl Hash for MacroName
[src]
fn hash<H: Hasher>(&self, hasher: &mut H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PositionRange for MacroName
[src]
fn start_position(&self) -> Position
Returns the (inclusive) start position of this.
fn end_position(&self) -> Position
Returns the (exclusive) end position of this.