[−][src]Struct genco::csharp::Enum
Model for Csharp Enums.
Fields
variants: Tokens<'el, Csharp<'el>>
Variants of the enum.
modifiers: Vec<Modifier>
Enum modifiers.
implements: Vec<Csharp<'el>>
What this enum implements.
Implementations
impl<'el> Enum<'el>
[src]
pub fn new<N>(name: N) -> Enum<'el> where
N: Into<Cons<'el>>,
[src]
N: Into<Cons<'el>>,
Build a new empty interface.
pub fn attribute<T>(&mut self, attribute: T) where
T: IntoTokens<'el, Csharp<'el>>,
[src]
T: IntoTokens<'el, Csharp<'el>>,
Push an attribute.
pub fn name(&self) -> Cons<'el>
[src]
Name of enum.
Trait Implementations
impl<'el> Clone for Enum<'el>
[src]
impl<'el> Debug for Enum<'el>
[src]
impl<'el> From<Enum<'el>> for Tokens<'el, Csharp<'el>>
[src]
impl<'el> IntoTokens<'el, Csharp<'el>> for Enum<'el>
[src]
fn into_tokens(self) -> Tokens<'el, Csharp<'el>>
[src]
Auto Trait Implementations
impl<'el> !RefUnwindSafe for Enum<'el>
impl<'el> !Send for Enum<'el>
impl<'el> !Sync for Enum<'el>
impl<'el> Unpin for Enum<'el>
impl<'el> !UnwindSafe for Enum<'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>,