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

Fields of Relative

Fields of Absolute

Trait Implementations

impl<'input> Debug for Name<'input>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'input> Clone for Name<'input>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'input> PartialEq for Name<'input>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'input> Eq for Name<'input>
[src]

Auto Trait Implementations

impl<'input> Send for Name<'input>

impl<'input> Sync for Name<'input>