Struct codeviz_java::FieldSpec
[−]
[src]
pub struct FieldSpec { pub modifiers: Modifiers, pub ty: Type, pub name: String, pub annotations: Vec<AnnotationSpec>, pub initialize: Option<Statement>, }
Fields
modifiers: Modifiers
ty: Type
name: String
annotations: Vec<AnnotationSpec>
initialize: Option<Statement>
Methods
impl FieldSpec
[src]
fn new<I>(modifiers: Modifiers, ty: I, name: &str) -> FieldSpec where
I: Into<Type>,
[src]
I: Into<Type>,
fn push_annotation<A>(&mut self, annotation: A) where
A: Into<AnnotationSpec>,
[src]
A: Into<AnnotationSpec>,
fn initialize<S>(&mut self, initialize: S) where
S: Into<Statement>,
[src]
S: Into<Statement>,
Trait Implementations
impl Debug for FieldSpec
[src]
impl Clone for FieldSpec
[src]
fn clone(&self) -> FieldSpec
[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<'a, T> From<&'a T> for FieldSpec where
T: Into<FieldSpec> + Clone,
[src]
T: Into<FieldSpec> + Clone,