Enum windows_gen::TypeKind[][src]

pub enum TypeKind {
    Void,
    Bool,
    Char,
    I8,
    U8,
    I16,
    U16,
    I32,
    U32,
    I64,
    U64,
    F32,
    F64,
    ISize,
    USize,
    String,
    Object,
    Guid,
    IUnknown,
    ErrorCode,
    Bool32,
    Matrix3x2,
    Class(TypeName),
    Interface(TypeName),
    Enum(TypeName),
    Struct(TypeName),
    Delegate(TypeName),
    Generic(&'static str),
    NotYetSupported,
}

Variants

Void
Bool
Char
I8
U8
I16
U16
I32
U32
I64
U64
F32
F64
ISize
USize
String
Object
Guid
IUnknown
ErrorCode
Bool32
Matrix3x2
Class(TypeName)
Interface(TypeName)
Enum(TypeName)
Struct(TypeName)
Delegate(TypeName)
Generic(&'static str)
NotYetSupported

A type that hasn't been supported yet. For example, multidimensional arrays are not yet supported

Implementations

impl TypeKind[src]

pub fn signature(&self) -> String[src]

pub fn runtime_name(&self) -> String[src]

pub fn from_type_def(def: &TypeDef, calling_namespace: &'static str) -> Self[src]

pub fn from_type_ref(
    type_ref: &TypeRef,
    calling_namespace: &'static str
) -> Self
[src]

pub fn from_type_spec(
    spec: &TypeSpec,
    generics: &[Self],
    calling_namespace: &'static str
) -> Self
[src]

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

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

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

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

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

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

pub fn primitive(&self) -> bool[src]

Trait Implementations

impl Clone for TypeKind[src]

impl Debug for TypeKind[src]

impl Eq for TypeKind[src]

impl Ord for TypeKind[src]

impl PartialEq<TypeKind> for TypeKind[src]

impl PartialOrd<TypeKind> for TypeKind[src]

impl StructuralEq for TypeKind[src]

impl StructuralPartialEq for TypeKind[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> 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.