Struct codeviz_java::EnumSpec
[−]
[src]
pub struct EnumSpec { pub modifiers: Modifiers, pub name: String, pub annotations: Vec<AnnotationSpec>, pub values: Elements, pub fields: Vec<FieldSpec>, pub constructors: Vec<ConstructorSpec>, pub elements: Elements, pub implements: Vec<ClassType>, }
Fields
modifiers: Modifiers
name: String
annotations: Vec<AnnotationSpec>
values: Elements
fields: Vec<FieldSpec>
constructors: Vec<ConstructorSpec>
elements: Elements
implements: Vec<ClassType>
Methods
impl EnumSpec
[src]
fn new(modifiers: Modifiers, name: &str) -> EnumSpec
fn push_value<E>(&mut self, value: E) where
E: Into<Element>,
E: Into<Element>,
Trait Implementations
impl ClassLike for EnumSpec
[src]
fn implements<T>(&mut self, ty: T) where
T: Into<ClassType>,
T: Into<ClassType>,
fn push_annotation<A>(&mut self, annotation: A) where
A: Into<AnnotationSpec>,
A: Into<AnnotationSpec>,
fn push_field<F>(&mut self, field: F) where
F: Into<FieldSpec>,
F: Into<FieldSpec>,
fn fields(&self) -> &Vec<FieldSpec>
fn push_constructor<C>(&mut self, constructor: C) where
C: Into<ConstructorSpec>,
C: Into<ConstructorSpec>,
impl ContainerSpec for EnumSpec
[src]
impl Debug for EnumSpec
[src]
impl Clone for EnumSpec
[src]
fn clone(&self) -> EnumSpec
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more