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
package: Loc<Package<'input>>
range: Option<Loc<String>>
alias: Option<Loc<Cow<'input, str>>>
endl: Option<Span>
If the end-of-line indicator present. A empty value should indicate an error.
Trait Implementations
impl<'input> Debug for UseDecl<'input>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'input> PartialEq for UseDecl<'input>
[src]
fn eq(&self, __arg_0: &UseDecl<'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: &UseDecl<'input>) -> bool
[src]
This method tests for !=
.