Struct windows_gen::Type[][src]

pub struct Type {
    pub kind: TypeKind,
    pub pointers: usize,
    pub array: Option<usize>,
    pub by_ref: bool,
    pub modifiers: Vec<TypeDefOrRef>,
    pub param: Option<Param>,
    pub name: String,
    pub is_const: bool,
    pub is_array: bool,
    pub is_input: bool,
}

Fields

kind: TypeKindpointers: usizearray: Option<usize>by_ref: boolmodifiers: Vec<TypeDefOrRef>param: Option<Param>name: Stringis_const: boolis_array: boolis_input: bool

Implementations

impl Type[src]

pub fn from_blob(
    blob: &mut Blob,
    param: Option<Param>,
    generics: &[TypeKind],
    calling_namespace: &'static str,
    is_return_type: bool
) -> Option<Self>
[src]

pub fn from_field(field: &Field, calling_namespace: &'static str) -> Self[src]

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

pub fn gen_clone(&self, name: &TokenStream) -> TokenStream[src]

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

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

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

Trait Implementations

impl Clone for Type[src]

impl Debug for Type[src]

impl Eq for Type[src]

impl Ord for Type[src]

impl PartialEq<Type> for Type[src]

impl PartialOrd<Type> for Type[src]

impl StructuralEq for Type[src]

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