Struct genco::csharp::Argument
[−]
[src]
pub struct Argument<'el> { pub modifiers: Vec<Modifier>, // some fields omitted }
Model for C# Arguments to functions.
Fields
modifiers: Vec<Modifier>
Modifiers for argument.
Methods
impl<'el> Argument<'el>
[src]
pub fn new<T, N>(ty: T, name: N) -> Argument<'el> where
T: Into<Csharp<'el>>,
N: Into<Cons<'el>>,
[src]
T: Into<Csharp<'el>>,
N: Into<Cons<'el>>,
Build a new empty argument.
pub fn attribute<T>(&mut self, attribute: T) where
T: IntoTokens<'el, Csharp<'el>>,
[src]
T: IntoTokens<'el, Csharp<'el>>,
Push an attribute.
pub fn var(&self) -> Cons<'el>
[src]
Get the variable of the argument.
pub fn ty(&self) -> Csharp<'el>
[src]
The type of the argument.
Trait Implementations
impl<'el> Debug for Argument<'el>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
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> From<Argument<'el>> for Tokens<'el, Csharp<'el>>
[src]
impl<'el> IntoTokens<'el, Csharp<'el>> for Argument<'el>
[src]
fn into_tokens(self) -> Tokens<'el, Csharp<'el>>
[src]
Convert the type into tokens.