Struct genco::java::Argument [−][src]
Model for Java Arguments to functions.
Fields
modifiers: Vec<Modifier>
Modifiers for argument.
Methods
impl<'el> Argument<'el>
[src]
impl<'el> Argument<'el>
pub fn new<T, N>(ty: T, name: N) -> Argument<'el> where
T: Into<Java<'el>>,
N: Into<Cons<'el>>,
[src]
pub fn new<T, N>(ty: T, name: N) -> Argument<'el> where
T: Into<Java<'el>>,
N: Into<Cons<'el>>,
Build a new empty argument.
pub fn annotation<A>(&mut self, annotation: A) where
A: IntoTokens<'el, Java<'el>>,
[src]
pub fn annotation<A>(&mut self, annotation: A) where
A: IntoTokens<'el, Java<'el>>,
Push an annotation.
pub fn var(&self) -> Cons<'el>
[src]
pub fn var(&self) -> Cons<'el>
Get the variable of the argument.
pub fn ty(&self) -> Java<'el>
[src]
pub fn ty(&self) -> Java<'el>
The type of the argument.
Trait Implementations
impl<'el> Debug for Argument<'el>
[src]
impl<'el> Debug for Argument<'el>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'el> Clone for Argument<'el>
[src]
impl<'el> Clone for Argument<'el>
fn clone(&self) -> Argument<'el>
[src]
fn clone(&self) -> Argument<'el>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'el> From<Argument<'el>> for Tokens<'el, Java<'el>>
[src]
impl<'el> From<Argument<'el>> for Tokens<'el, Java<'el>>
impl<'el> IntoTokens<'el, Java<'el>> for Argument<'el>
[src]
impl<'el> IntoTokens<'el, Java<'el>> for Argument<'el>
fn into_tokens(self) -> Tokens<'el, Java<'el>>
[src]
fn into_tokens(self) -> Tokens<'el, Java<'el>>
Convert the type into tokens.