Struct windows_winmd::TypeReader[][src]

pub struct TypeReader {
    pub files: Vec<File>,
    // some fields omitted
}

A reader of type information from Windows Metadata

Fields

files: Vec<File>

The parsed Windows metadata files the TypeReader has access to

Implementations

impl TypeReader[src]

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

pub fn find_lowercase_namespace(
    &'static self,
    lowercase: &str
) -> Option<&'static str>
[src]

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

Get all the namespace names that the TypeReader knows about

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

Get all type definitions (TypeDefs) for a given namespace

Panics

Panics if the namespace does not exist

pub fn expect_type(&'static self, (namespace, type_name): (&str, &str)) -> Type[src]

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

pub fn u32(&self, row: Row, column: u32) -> u32[src]

Read a u32 value from a specific Row and column

pub fn str(&self, row: Row, column: u32) -> &str[src]

Read a &str value from a specific Row and column

pub fn blob(&'static self, row: Row, column: u32) -> Blob[src]

Read a blob for a given row and column

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.