Struct genco::java::Constructor
[−]
[src]
pub struct Constructor<'el> { pub modifiers: Vec<Modifier>, pub arguments: Vec<Argument<'el>>, pub body: Tokens<'el, Java<'el>>, // some fields omitted }
Model for Java Constructors.
Fields
modifiers: Vec<Modifier>
Constructor modifiers.
arguments: Vec<Argument<'el>>
Arguments for the constructor.
body: Tokens<'el, Java<'el>>
Body of the constructor.
Methods
impl<'el> Constructor<'el>
[src]
pub fn new() -> Constructor<'el>
[src]
Build a new empty constructor.
pub fn annotation<A>(&mut self, annotation: A) where
A: IntoTokens<'el, Java<'el>>,
[src]
A: IntoTokens<'el, Java<'el>>,
Push an annotation.
Trait Implementations
impl<'el> Debug for Constructor<'el>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'el> Clone for Constructor<'el>
[src]
fn clone(&self) -> Constructor<'el>
[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