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
span: Span
name: &'a F::Name
ident: &'a Loc<String>
comment: &'a Vec<String>
value: RpVariantValue<'a>
Methods
impl<'a, F: 'static> RpVariantRef<'a, F> where
F: Flavor,
[src]
F: Flavor,
Trait Implementations
impl<'a, F: Debug + 'static> Debug for RpVariantRef<'a, F> where
F: Flavor,
F::Name: Debug,
[src]
F: Flavor,
F::Name: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[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]
F: Flavor,
F::Name: Clone,
fn clone(&self) -> RpVariantRef<'a, F>
[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<'a, F: Copy + 'static> Copy for RpVariantRef<'a, F> where
F: Flavor,
F::Name: Copy,
[src]
F: Flavor,
F::Name: Copy,
impl<'a, F: 'static> Display for RpVariantRef<'a, F> where
F: Flavor,
[src]
F: Flavor,
Auto Trait Implementations
impl<'a, F> Send for RpVariantRef<'a, F> where
<F as Flavor>::Name: Sync,
<F as Flavor>::Name: Sync,
impl<'a, F> Sync for RpVariantRef<'a, F> where
<F as Flavor>::Name: Sync,
<F as Flavor>::Name: Sync,