Struct reproto_core::RpEnumBody
[−]
[src]
pub struct RpEnumBody<F: 'static> where
F: Flavor, { pub name: F::Name, pub ident: String, pub comment: Vec<String>, pub decls: Vec<RpDecl<F>>, pub enum_type: RpEnumType, pub variants: Vec<Loc<RpVariant<F>>>, pub codes: Vec<Loc<RpCode>>, }
Fields
name: F::Name
ident: String
comment: Vec<String>
decls: Vec<RpDecl<F>>
enum_type: RpEnumType
The type of the variant.
variants: Vec<Loc<RpVariant<F>>>
Variants in the enum.
codes: Vec<Loc<RpCode>>
Custom code blocks in the enum.
Trait Implementations
impl<F: Debug + 'static> Debug for RpEnumBody<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<F: Clone + 'static> Clone for RpEnumBody<F> where
F: Flavor,
F::Name: Clone,
[src]
F: Flavor,
F::Name: Clone,
fn clone(&self) -> RpEnumBody<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<F: 'static, T> Translate<T> for RpEnumBody<F> where
F: Flavor,
T: Translator<Source = F>,
[src]
F: Flavor,
T: Translator<Source = F>,
type Source = F
type Out = RpEnumBody<T::Target>
fn translate(self, translator: &T) -> Result<RpEnumBody<T::Target>>
[src]
Translate into different flavor.