Enum reproto_core::RpNamed
[−]
[src]
pub enum RpNamed<'a, F: 'static> where
F: Flavor, { Type(&'a Loc<RpTypeBody<F>>), Tuple(&'a Loc<RpTupleBody<F>>), Interface(&'a Loc<RpInterfaceBody<F>>), SubType(&'a Loc<RpSubType<F>>), Enum(&'a Loc<RpEnumBody<F>>), EnumVariant(RpVariantRef<'a, F>), Service(&'a Loc<RpServiceBody<F>>), }
Variants
Type(&'a Loc<RpTypeBody<F>>)
Tuple(&'a Loc<RpTupleBody<F>>)
Interface(&'a Loc<RpInterfaceBody<F>>)
SubType(&'a Loc<RpSubType<F>>)
Enum(&'a Loc<RpEnumBody<F>>)
EnumVariant(RpVariantRef<'a, F>)
Service(&'a Loc<RpServiceBody<F>>)
Methods
impl<'a, F: 'static> RpNamed<'a, F> where
F: Flavor,
[src]
F: Flavor,
pub fn name(&self) -> &F::Name
[src]
Get the name of the named element.
pub fn span(&self) -> Span
[src]
Get the position of the named element.
Trait Implementations
impl<'a, F: Debug + 'static> Debug for RpNamed<'a, F> where
F: Flavor,
[src]
F: Flavor,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a, F: Clone + 'static> Clone for RpNamed<'a, F> where
F: Flavor,
[src]
F: Flavor,
Auto Trait Implementations
impl<'a, F> Send for RpNamed<'a, F> where
<F as Flavor>::Endpoint: Sync,
<F as Flavor>::EnumType: Sync,
<F as Flavor>::Field: Sync,
<F as Flavor>::Name: Sync,
<F as Flavor>::Endpoint: Sync,
<F as Flavor>::EnumType: Sync,
<F as Flavor>::Field: Sync,
<F as Flavor>::Name: Sync,
impl<'a, F> Sync for RpNamed<'a, F> where
<F as Flavor>::Endpoint: Sync,
<F as Flavor>::EnumType: Sync,
<F as Flavor>::Field: Sync,
<F as Flavor>::Name: Sync,
<F as Flavor>::Endpoint: Sync,
<F as Flavor>::EnumType: Sync,
<F as Flavor>::Field: Sync,
<F as Flavor>::Name: Sync,