Struct reproto_core::RpEnumBody
[−]
[src]
pub struct RpEnumBody {
pub name: RpName,
pub ident: String,
pub comment: Vec<String>,
pub decls: Vec<RpDecl>,
pub enum_type: RpEnumType,
pub variants: Vec<Rc<Loc<RpVariant>>>,
pub codes: Vec<Loc<RpCode>>,
}Fields
name: RpName
ident: String
comment: Vec<String>
decls: Vec<RpDecl>
enum_type: RpEnumType
The type of the variant.
variants: Vec<Rc<Loc<RpVariant>>>
Variants in the enum.
codes: Vec<Loc<RpCode>>
Custom code blocks in the enum.
Trait Implementations
impl Debug for RpEnumBody[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for RpEnumBody[src]
fn clone(&self) -> RpEnumBody[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