Enum reproto_ast::Name
[−]
[src]
pub enum Name<'input> { Relative { parts: Vec<Loc<Cow<'input, str>>>, }, Absolute { prefix: Option<Loc<Cow<'input, str>>>, parts: Vec<Loc<Cow<'input, str>>>, }, }
A name.
Either:
ⓘThis example is not tested
::Relative::Name
Or:
ⓘThis example is not tested
<prefix::>Absolute::Name
Note: prefixes names are always imported with UseDecl
.
Variants
Relative
Fields of Relative
parts: Vec<Loc<Cow<'input, str>>> |
Absolute
Fields of Absolute
prefix: Option<Loc<Cow<'input, str>>> | |
parts: Vec<Loc<Cow<'input, str>>> |
Trait Implementations
impl<'input> Debug for Name<'input>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'input> Clone for Name<'input>
[src]
fn clone(&self) -> Name<'input>
[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<'input> PartialEq for Name<'input>
[src]
fn eq(&self, __arg_0: &Name<'input>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Name<'input>) -> bool
[src]
This method tests for !=
.