Struct windows_gen::TypeReader[][src]

pub struct TypeReader { /* fields omitted */ }

A reader of type information from Windows Metadata

Implementations

impl TypeReader[src]

pub fn get() -> &'static Self[src]

pub fn resolve_namespace(&'static self, find: &str) -> &'static str[src]

pub fn namespaces(&'static self) -> impl Iterator<Item = &'static str>[src]

Get all the namespace names that the TypeReader knows about

pub fn namespace_types(
    &'static self,
    namespace: &str
) -> impl Iterator<Item = ElementType> + '_
[src]

Get all types for a given namespace

Panics

Panics if the namespace does not exist

pub fn nested_types(&'static self, enclosing: &TypeDef) -> Vec<TypeDef>[src]

pub fn resolve_type(&'static self, namespace: &str, name: &str) -> ElementType[src]

pub fn resolve_type_def(&'static self, namespace: &str, name: &str) -> TypeDef[src]

pub fn resolve_type_ref(&'static self, type_ref: &TypeRef) -> TypeDef[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.