[−][src]Struct genco::csharp::Constructor
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]
T: IntoTokens<'el, Csharp<'el>>,
Push a attribute.
Trait Implementations
impl<'el> Clone for Constructor<'el>
[src]
fn clone(&self) -> Constructor<'el>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
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>,