pub struct RpVariantRef<'a, F>where
F: Flavor + 'static,{
pub span: Span,
pub name: &'a F::Name,
pub ident: &'a Loc<String>,
pub comment: &'a Vec<String>,
pub value: RpVariantValue<'a>,
}
Expand description
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>
Implementations§
Trait Implementations§
Source§impl<'a, F> Clone for RpVariantRef<'a, F>
impl<'a, F> Clone for RpVariantRef<'a, F>
Source§fn clone(&self) -> RpVariantRef<'a, F>
fn clone(&self) -> RpVariantRef<'a, F>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a, F> Debug for RpVariantRef<'a, F>
impl<'a, F> Debug for RpVariantRef<'a, F>
Source§impl<'a, F> Display for RpVariantRef<'a, F>where
F: Flavor + 'static,
impl<'a, F> Display for RpVariantRef<'a, F>where
F: Flavor + 'static,
impl<'a, F> Copy for RpVariantRef<'a, F>
Auto Trait Implementations§
impl<'a, F> Freeze for RpVariantRef<'a, F>
impl<'a, F> RefUnwindSafe for RpVariantRef<'a, F>
impl<'a, F> Send for RpVariantRef<'a, F>
impl<'a, F> Sync for RpVariantRef<'a, F>
impl<'a, F> Unpin for RpVariantRef<'a, F>
impl<'a, F> UnwindSafe for RpVariantRef<'a, F>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more