Struct reproto_core::RpVariant [] [src]

pub struct RpVariant<F: 'static, V> where
    F: Flavor
{ pub name: F::Name, pub ident: Loc<String>, pub comment: Vec<String>, pub value: V, }

Variant in an enum.

Fields

Methods

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

[src]

Get the identifier of the variant.

impl<'a, F: 'static, V: 'a> RpVariant<F, V> where
    F: Flavor,
    RpVariantValue<'a>: From<&'a V>, 
[src]

[src]

Convert into a variant value.

Trait Implementations

impl<F: Debug + 'static, V: Debug> Debug for RpVariant<F, V> where
    F: Flavor,
    F::Name: Debug
[src]

[src]

Formats the value using the given formatter. Read more

impl<F: Clone + 'static, V: Clone> Clone for RpVariant<F, V> 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: PartialEq + 'static, V: PartialEq> PartialEq for RpVariant<F, V> where
    F: Flavor,
    F::Name: PartialEq
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<F: Eq + 'static, V: Eq> Eq for RpVariant<F, V> where
    F: Flavor,
    F::Name: Eq
[src]

impl<F: 'static, T, V> Translate<T> for RpVariant<F, V> where
    F: Flavor,
    T: Translator<Source = F>, 
[src]

[src]

Translate into different flavor.

Auto Trait Implementations

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

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