[−][src]Struct genco::csharp::Method
Model for Csharp Methods.
Fields
modifiers: Vec<Modifier>
Method modifiers.
arguments: Vec<Argument<'el>>
Arguments for the constructor.
body: Tokens<'el, Csharp<'el>>
Body of the constructor.
returns: Csharp<'el>
Return type.
parameters: Tokens<'el, Csharp<'el>>
Generic parameters.
comments: Vec<Cons<'el>>
Comments associated with this method.
Implementations
impl<'el> Method<'el>
[src]
pub fn new<N>(name: N) -> Method<'el> where
N: Into<Cons<'el>>,
[src]
N: Into<Cons<'el>>,
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.
pub fn name(&self) -> Cons<'el>
[src]
Name of method.
Trait Implementations
impl<'el> Clone for Method<'el>
[src]
impl<'el> Debug for Method<'el>
[src]
impl<'el> From<Method<'el>> for Tokens<'el, Csharp<'el>>
[src]
impl<'el> IntoTokens<'el, Csharp<'el>> for Method<'el>
[src]
fn into_tokens(self) -> Tokens<'el, Csharp<'el>>
[src]
Auto Trait Implementations
impl<'el> !RefUnwindSafe for Method<'el>
impl<'el> !Send for Method<'el>
impl<'el> !Sync for Method<'el>
impl<'el> Unpin for Method<'el>
impl<'el> !UnwindSafe for Method<'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>,