Struct reproto_core::RpVariant
[−]
[src]
pub struct RpVariant<F: 'static> where
F: Flavor, { pub name: F::Name, pub ident: Loc<String>, pub comment: Vec<String>, pub ordinal: RpEnumOrdinal, }
Variant in an enum
Fields
name: F::Name
ident: Loc<String>
comment: Vec<String>
ordinal: RpEnumOrdinal
Methods
impl<F: 'static> RpVariant<F> where
F: Flavor,
[src]
F: Flavor,
pub fn ident(&self) -> &str
[src]
Get the identifier of the variant.
pub fn ordinal(&self) -> &str
[src]
Get the ordinal value of the variant.
Trait Implementations
impl<F: Debug + 'static> Debug for RpVariant<F> where
F: Flavor,
F::Name: Debug,
[src]
F: Flavor,
F::Name: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<F: Clone + 'static> Clone for RpVariant<F> where
F: Flavor,
F::Name: Clone,
[src]
F: Flavor,
F::Name: Clone,
fn clone(&self) -> RpVariant<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<F: 'static, T> Translate<T> for RpVariant<F> where
F: Flavor,
T: Translator<Source = F>,
[src]
F: Flavor,
T: Translator<Source = F>,