pub struct RpEnumBody<F>where
F: Flavor + 'static,{
pub name: F::Name,
pub ident: String,
pub comment: Vec<String>,
pub decls: Vec<RpDecl<F>>,
pub enum_type: F::EnumType,
pub variants: RpVariants<F>,
pub codes: Vec<Loc<RpCode>>,
}
Fields§
§name: F::Name
§ident: String
§comment: Vec<String>
§decls: Vec<RpDecl<F>>
§enum_type: F::EnumType
The type of the variant.
variants: RpVariants<F>
Variants in the enum.
codes: Vec<Loc<RpCode>>
Custom code blocks in the enum.
Trait Implementations§
Source§impl<F> Clone for RpEnumBody<F>
impl<F> Clone for RpEnumBody<F>
Source§fn clone(&self) -> RpEnumBody<F>
fn clone(&self) -> RpEnumBody<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 RpEnumBody<F>
impl<F> Debug for RpEnumBody<F>
Source§impl<F> Serialize for RpEnumBody<F>
impl<F> Serialize for RpEnumBody<F>
Source§impl<F, T> Translate<T> for RpEnumBody<F>where
F: Flavor + 'static,
T: Translator<Source = F>,
impl<F, T> Translate<T> for RpEnumBody<F>where
F: Flavor + 'static,
T: Translator<Source = F>,
Source§fn translate(
self,
diag: &mut Diagnostics,
translator: &T,
) -> Result<RpEnumBody<T::Target>>
fn translate( self, diag: &mut Diagnostics, translator: &T, ) -> Result<RpEnumBody<T::Target>>
Translate into different flavor.
type Source = F
type Out = RpEnumBody<<T as Translator>::Target>
Auto Trait Implementations§
impl<F> Freeze for RpEnumBody<F>
impl<F> RefUnwindSafe for RpEnumBody<F>where
<F as Flavor>::Name: RefUnwindSafe,
<F as Flavor>::EnumType: RefUnwindSafe,
<F as Flavor>::Field: RefUnwindSafe,
<F as Flavor>::Endpoint: RefUnwindSafe,
impl<F> Send for RpEnumBody<F>
impl<F> Sync for RpEnumBody<F>
impl<F> Unpin for RpEnumBody<F>
impl<F> UnwindSafe for RpEnumBody<F>where
<F as Flavor>::Name: UnwindSafe,
<F as Flavor>::EnumType: UnwindSafe,
<F as Flavor>::Field: UnwindSafe,
<F as Flavor>::Endpoint: UnwindSafe,
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