Struct reproto_ast::UseDecl [] [src]

pub struct UseDecl<'input> {
    pub package: Loc<Package<'input>>,
    pub range: Option<Loc<String>>,
    pub alias: Option<Loc<Cow<'input, str>>>,
    pub endl: Option<Span>,
}

A use declaration

This example is not tested
use <package> "<range>" as <alias>;

Fields

If the end-of-line indicator present. A empty value should indicate an error.

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

impl<'input> PartialEq for UseDecl<'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 UseDecl<'input>
[src]

Auto Trait Implementations

impl<'input> Send for UseDecl<'input>

impl<'input> Sync for UseDecl<'input>