[][src]Struct genco::java::Argument

pub struct Argument<'el> {
    pub modifiers: Vec<Modifier>,
    // some fields omitted
}

Model for Java Arguments to functions.

Fields

modifiers: Vec<Modifier>

Modifiers for argument.

Implementations

impl<'el> Argument<'el>[src]

pub fn new<T, N>(ty: T, name: N) -> Argument<'el> where
    T: Into<Java<'el>>,
    N: Into<Cons<'el>>, 
[src]

Build a new empty argument.

pub fn annotation<A>(&mut self, annotation: A) where
    A: IntoTokens<'el, Java<'el>>, 
[src]

Push an annotation.

pub fn var(&self) -> Cons<'el>[src]

Get the variable of the argument.

pub fn ty(&self) -> Java<'el>[src]

The type of the argument.

Trait Implementations

impl<'el> Clone for Argument<'el>[src]

impl<'el> Debug for Argument<'el>[src]

impl<'el> From<Argument<'el>> for Tokens<'el, Java<'el>>[src]

impl<'el> IntoTokens<'el, Java<'el>> for Argument<'el>[src]

Auto Trait Implementations

impl<'el> !RefUnwindSafe for Argument<'el>

impl<'el> !Send for Argument<'el>

impl<'el> !Sync for Argument<'el>

impl<'el> Unpin for Argument<'el>

impl<'el> !UnwindSafe for Argument<'el>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.