Struct genco::csharp::Constructor
[−]
[src]
pub struct Constructor<'el> { pub modifiers: Vec<Modifier>, pub arguments: Vec<Argument<'el>>, pub body: Tokens<'el, Csharp<'el>>, pub base: Option<Tokens<'el, Csharp<'el>>>, // some fields omitted }
Model for Csharp Constructors.
Fields
modifiers: Vec<Modifier>
Constructor modifiers.
arguments: Vec<Argument<'el>>
Arguments for the constructor.
body: Tokens<'el, Csharp<'el>>
Body of the constructor.
base: Option<Tokens<'el, Csharp<'el>>>
Base call
Methods
impl<'el> Constructor<'el>
[src]
pub fn new() -> Constructor<'el>
[src]
Build a new empty constructor.
pub fn attribute<T>(&mut self, attribute: T) where
T: IntoTokens<'el, Csharp<'el>>,
[src]
T: IntoTokens<'el, Csharp<'el>>,
Push a attribute.
Trait Implementations
impl<'el> Debug for Constructor<'el>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'el> Clone for Constructor<'el>
[src]
fn clone(&self) -> Constructor<'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