[−][src]Struct genco::java::Argument
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]
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]
A: IntoTokens<'el, Java<'el>>,
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]
fn into_tokens(self) -> Tokens<'el, Java<'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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,