Enum windows_gen::TypeDefinition[][src]

pub enum TypeDefinition {
    Class(Class),
    Interface(Interface),
    Enum(Enum),
    Struct(Struct),
    Delegate(Delegate),
    ComInterface(ComInterface),
    Callback(Callback),
    Constant(Constant),
    Function(Function),
}

Variants

Class(Class)
Interface(Interface)
Enum(Enum)
Struct(Struct)
Delegate(Delegate)
ComInterface(ComInterface)
Callback(Callback)
Constant(Constant)
Function(Function)

Implementations

impl TypeDefinition[src]

pub fn from_type_row(row: &Type) -> Self[src]

pub fn from_method_def(def: &TypeDef, method: &MethodDef) -> Self[src]

pub fn from_field(def: &TypeDef, field: &Field) -> Self[src]

pub fn from_type_def(def: &TypeDef) -> Self[src]

pub fn gen(&self) -> TokenStream[src]

pub fn name(&self) -> &TypeName[src]

pub fn dependencies(&self) -> Vec<TypeDef>[src]

Trait Implementations

impl Debug for TypeDefinition[src]

Auto Trait Implementations

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, 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.