Enum reproto_ast::Decl [] [src]

pub enum Decl<'input> {
    Type(Item<'input, TypeBody<'input>>),
    Tuple(Item<'input, TupleBody<'input>>),
    Interface(Item<'input, InterfaceBody<'input>>),
    Enum(Item<'input, EnumBody<'input>>),
    Service(Item<'input, ServiceBody<'input>>),
}

Any kind of declaration.

Variants

Methods

impl<'input> Decl<'input>
[src]

[src]

Get the local name for the declaration.

Important traits for Decls<'a, 'input>
[src]

Get all the sub-declarations of this declaraiton.

[src]

Comment.

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

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

Auto Trait Implementations

impl<'input> Send for Decl<'input>

impl<'input> Sync for Decl<'input>