pub struct RpVariant<F, V>where
F: Flavor + 'static,{
pub name: F::Name,
pub ident: Loc<String>,
pub comment: Vec<String>,
pub value: V,
}
Expand description
Variant in an enum.
Fields§
§name: F::Name
§ident: Loc<String>
§comment: Vec<String>
§value: V
Implementations§
Trait Implementations§
Source§impl<F, T, V> Translate<T> for RpVariant<F, V>where
F: Flavor + 'static,
T: Translator<Source = F>,
impl<F, T, V> Translate<T> for RpVariant<F, V>where
F: Flavor + 'static,
T: Translator<Source = F>,
impl<F, V: Eq> Eq for RpVariant<F, V>
impl<F, V> StructuralPartialEq for RpVariant<F, V>where
F: Flavor + 'static,
Auto Trait Implementations§
impl<F, V> Freeze for RpVariant<F, V>
impl<F, V> RefUnwindSafe for RpVariant<F, V>
impl<F, V> Send for RpVariant<F, V>
impl<F, V> Sync for RpVariant<F, V>
impl<F, V> Unpin for RpVariant<F, V>
impl<F, V> UnwindSafe for RpVariant<F, V>
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