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