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

Methods

impl<F: 'static> RpVariant<F> where
    F: Flavor
[src]

[src]

Get the identifier of the variant.

[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]

[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]

[src]

Returns a copy of the value. Read more

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]

[src]

Translate into different flavor.

Auto Trait Implementations

impl<F> Send for RpVariant<F> where
    <F as Flavor>::Name: Send

impl<F> Sync for RpVariant<F> where
    <F as Flavor>::Name: Sync