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]
fn decls(&self) -> DeclIter
[src]
fn local_name(&self) -> &str
[src]
fn name(&self) -> &RpName
[src]
fn comment(&self) -> &[String]
[src]
fn into_registered_type(&self) -> Vec<RpRegistered>
[src]
Convert a declaration into its registered types.
Trait Implementations
impl Debug for RpDecl
[src]
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