pub enum RpVariants<F>where
F: Flavor + 'static,{
String {
variants: Vec<Loc<RpVariant<F, String>>>,
},
Number {
variants: Vec<Loc<RpVariant<F, RpNumber>>>,
},
}
Variants§
Implementations§
Trait Implementations§
Source§impl<F> Clone for RpVariants<F>
impl<F> Clone for RpVariants<F>
Source§fn clone(&self) -> RpVariants<F>
fn clone(&self) -> RpVariants<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<F> Debug for RpVariants<F>
impl<F> Debug for RpVariants<F>
Source§impl<'a, F> IntoIterator for &'a RpVariants<F>where
F: Flavor + 'static,
impl<'a, F> IntoIterator for &'a RpVariants<F>where
F: Flavor + 'static,
Source§impl<F> Serialize for RpVariants<F>
impl<F> Serialize for RpVariants<F>
Source§impl<F, T> Translate<T> for RpVariants<F>where
F: Flavor + 'static,
T: Translator<Source = F>,
impl<F, T> Translate<T> for RpVariants<F>where
F: Flavor + 'static,
T: Translator<Source = F>,
Source§fn translate(
self,
diag: &mut Diagnostics,
translator: &T,
) -> Result<RpVariants<T::Target>>
fn translate( self, diag: &mut Diagnostics, translator: &T, ) -> Result<RpVariants<T::Target>>
Translate into different flavor.
type Source = F
type Out = RpVariants<<T as Translator>::Target>
Auto Trait Implementations§
impl<F> Freeze for RpVariants<F>
impl<F> RefUnwindSafe for RpVariants<F>
impl<F> Send for RpVariants<F>
impl<F> Sync for RpVariants<F>
impl<F> Unpin for RpVariants<F>
impl<F> UnwindSafe for RpVariants<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