Struct genco::java::Argument
[−]
[src]
pub struct Argument<'el> { pub modifiers: Vec<Modifier>, // some fields omitted }
Model for Java Arguments to functions.
Fields
modifiers: Vec<Modifier>
Modifiers for argument.
Methods
impl<'el> Argument<'el>
[src]
fn new<T, N>(ty: T, name: N) -> Argument<'el> where
T: Into<Java<'el>>,
N: Into<Cons<'el>>,
[src]
T: Into<Java<'el>>,
N: Into<Cons<'el>>,
Build a new empty argument.
fn annotation<A>(&mut self, annotation: A) where
A: IntoTokens<'el, Java<'el>>,
[src]
A: IntoTokens<'el, Java<'el>>,
Push an annotation.
fn var(&self) -> Cons<'el>
[src]
Get the variable of the argument.
Trait Implementations
impl<'el> Debug for Argument<'el>
[src]
impl<'el> Clone for Argument<'el>
[src]
fn clone(&self) -> Argument<'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
impl<'el> IntoTokens<'el, Java<'el>> for Argument<'el>
[src]
fn into_tokens(self) -> Tokens<'el, Java<'el>>
[src]
Convert the type into tokens.