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(&'a Loc<RpVariant<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(&'a Loc<RpVariant<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 pos(&self) -> &Pos
[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,
fn clone(&self) -> RpNamed<'a, F>
[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
impl<'a, F: Copy + 'static> Copy for RpNamed<'a, F> where
F: Flavor,
[src]
F: Flavor,