Enum reproto_core::RpDecl
[−]
[src]
pub enum RpDecl { Type(Rc<Loc<RpTypeBody>>), Tuple(Rc<Loc<RpTupleBody>>), Interface(Rc<Loc<RpInterfaceBody>>), Enum(Rc<Loc<RpEnumBody>>), Service(Rc<Loc<RpServiceBody>>), }
Variants
Type(Rc<Loc<RpTypeBody>>)
Tuple(Rc<Loc<RpTupleBody>>)
Interface(Rc<Loc<RpInterfaceBody>>)
Enum(Rc<Loc<RpEnumBody>>)
Service(Rc<Loc<RpServiceBody>>)
Methods
impl RpDecl
[src]
pub fn decls(&self) -> Decls
[src]
pub fn local_name(&self) -> &str
[src]
pub fn name(&self) -> &RpName
[src]
pub fn comment(&self) -> &[String]
[src]
pub fn to_reg(&self) -> Vec<RpReg>
[src]
Convert a declaration into its registered types.
pub fn kind(&self) -> &str
[src]
Get stringy kind of the declaration.
pub fn pos(&self) -> &Pos
[src]
Get the position of the declaration.
Trait Implementations
impl Debug for RpDecl
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for RpDecl
[src]
fn clone(&self) -> RpDecl
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more