Enum reproto_core::RpDecl
[−]
[src]
pub enum RpDecl { Type(Rc<RpTypeBody>), Interface(Rc<RpInterfaceBody>), Enum(Rc<RpEnumBody>), Tuple(Rc<RpTupleBody>), Service(Rc<RpServiceBody>), }
Variants
Type(Rc<RpTypeBody>)
Interface(Rc<RpInterfaceBody>)
Enum(Rc<RpEnumBody>)
Tuple(Rc<RpTupleBody>)
Service(Rc<RpServiceBody>)
Methods
impl RpDecl
[src]
fn decls(&self) -> Vec<&Rc<Loc<RpDecl>>>
[src]
fn name(&self) -> &str
[src]
fn comment(&self) -> &[String]
[src]
fn into_registered_type(
&self,
type_id: &RpTypeId,
pos: &Pos
) -> Vec<(RpTypeId, Loc<RpRegistered>)>
[src]
&self,
type_id: &RpTypeId,
pos: &Pos
) -> Vec<(RpTypeId, Loc<RpRegistered>)>
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