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 name(&self) -> &str
fn comment(&self) -> &[String]
fn into_registered_type(
&self,
package: &RpVersionedPackage,
pos: &Pos
) -> Vec<(RpTypeId, Loc<RpRegistered>)>
&self,
package: &RpVersionedPackage,
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
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more