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
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>>)
Methods
impl<'input> Decl<'input>
[src]
pub fn name(&self) -> Loc<&str>
[src]
Get the local name for the declaration.
ⓘImportant traits for Decls<'a, 'input>pub fn decls(&self) -> Decls
[src]
ⓘImportant traits for Decls<'a, 'input>
Get all the sub-declarations of this declaraiton.
pub fn comment(&self) -> &Vec<Cow<'input, str>>
[src]
Comment.
Trait Implementations
impl<'input> Debug for Decl<'input>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'input> PartialEq for Decl<'input>
[src]
fn eq(&self, __arg_0: &Decl<'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: &Decl<'input>) -> bool
[src]
This method tests for !=
.