[][src]Struct genco::csharp::Constructor

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

Implementations

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]

Push a attribute.

Trait Implementations

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

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

Auto Trait Implementations

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

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

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

impl<'el> Unpin for Constructor<'el>

impl<'el> !UnwindSafe for Constructor<'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.