Enum reproto_core::RpRegistered
[−]
[src]
pub enum RpRegistered { Type(Rc<RpTypeBody>), Interface(Rc<RpInterfaceBody>), Enum(Rc<RpEnumBody>), Tuple(Rc<RpTupleBody>), SubType { parent: Rc<RpInterfaceBody>, sub_type: Rc<RpSubType>, }, EnumConstant { parent: Rc<RpEnumBody>, variant: Rc<RpEnumVariant>, }, Service(Rc<RpServiceBody>), }
Variants
Type(Rc<RpTypeBody>)
Interface(Rc<RpInterfaceBody>)
Enum(Rc<RpEnumBody>)
Tuple(Rc<RpTupleBody>)
SubType
Fields of SubType
parent: Rc<RpInterfaceBody> | |
sub_type: Rc<RpSubType> |
EnumConstant
Fields of EnumConstant
parent: Rc<RpEnumBody> | |
variant: Rc<RpEnumVariant> |
Service(Rc<RpServiceBody>)
Methods
impl RpRegistered
[src]
fn fields<'a>(&'a self) -> Result<Box<Iterator<Item = &Loc<RpField>> + 'a>>
[src]
fn field_by_ident(&self, ident: &str) -> Result<Option<&Loc<RpField>>>
[src]
fn is_assignable_from(&self, other: &RpRegistered) -> bool
[src]
fn display(&self) -> String
[src]
fn name(&self) -> Vec<&str>
[src]
fn local_name<PackageFn, InnerFn>(
&self,
type_id: &RpTypeId,
package_fn: PackageFn,
inner_fn: InnerFn
) -> String where
PackageFn: Fn(Vec<&str>) -> String,
InnerFn: Fn(Vec<&str>) -> String,
[src]
&self,
type_id: &RpTypeId,
package_fn: PackageFn,
inner_fn: InnerFn
) -> String where
PackageFn: Fn(Vec<&str>) -> String,
InnerFn: Fn(Vec<&str>) -> String,
Trait Implementations
impl Debug for RpRegistered
[src]
impl Clone for RpRegistered
[src]
fn clone(&self) -> RpRegistered
[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