Struct reproto_core::RpVariant
[−]
[src]
pub struct RpVariant { pub name: RpName, pub ident: Loc<String>, pub comment: Vec<String>, pub ordinal: RpEnumOrdinal, }
Fields
name: RpName
ident: Loc<String>
comment: Vec<String>
ordinal: RpEnumOrdinal
Methods
impl RpVariant
[src]
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 Debug for RpVariant
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for RpVariant
[src]
fn clone(&self) -> RpVariant
[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 where
F: Flavor,
T: Translator<Source = F>,
[src]
F: Flavor,
T: Translator<Source = F>,