Struct genco::csharp::Argument [−][src]
Model for C# 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<Csharp<'el>>,
N: Into<Cons<'el>>,
[src]
pub fn new<T, N>(ty: T, name: N) -> Argument<'el> where
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]
pub fn attribute<T>(&mut self, attribute: T) where
T: IntoTokens<'el, Csharp<'el>>,
Push an attribute.
pub fn var(&self) -> Cons<'el>
[src]
pub fn var(&self) -> Cons<'el>
Get the variable of the argument.
pub fn ty(&self) -> Csharp<'el>
[src]
pub fn ty(&self) -> Csharp<'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, Csharp<'el>>
[src]
impl<'el> From<Argument<'el>> for Tokens<'el, Csharp<'el>>
impl<'el> IntoTokens<'el, Csharp<'el>> for Argument<'el>
[src]
impl<'el> IntoTokens<'el, Csharp<'el>> for Argument<'el>
fn into_tokens(self) -> Tokens<'el, Csharp<'el>>
[src]
fn into_tokens(self) -> Tokens<'el, Csharp<'el>>
Convert the type into tokens.