Struct reproto_core::RpVariantRef [] [src]

pub struct RpVariantRef<'a, F: 'static> where
    F: Flavor
{ pub span: Span, pub name: &'a F::Name, pub ident: &'a Loc<String>, pub comment: &'a Vec<String>, pub value: RpVariantValue<'a>, }

A cheap, type-erasured variant that can be used for value comparisons.

This is typically created using RpVariants::iter().

Fields

Methods

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

[src]

Get the identifier for this variant.

Trait Implementations

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

[src]

Formats the value using the given formatter. Read more

impl<'a, F: Clone + 'static> Clone for RpVariantRef<'a, 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<'a, F: Copy + 'static> Copy for RpVariantRef<'a, F> where
    F: Flavor,
    F::Name: Copy
[src]

impl<'a, F: 'static> Display for RpVariantRef<'a, F> where
    F: Flavor
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a, F> Send for RpVariantRef<'a, F> where
    <F as Flavor>::Name: Sync

impl<'a, F> Sync for RpVariantRef<'a, F> where
    <F as Flavor>::Name: Sync