Struct windows_winmd::TypeReader [−][src]
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]
&'static self,
lowercase: &str
) -> Option<&'static str>
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]
&'static self,
namespace: &str
) -> impl Iterator<Item = Type> + '_
Get all type definitions (TypeDef
s) 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]
&'static self,
(namespace, type_name): (&str, &str)
) -> TypeDef
pub fn u32(&self, row: Row, column: u32) -> u32
[src]
pub fn str(&self, row: Row, column: u32) -> &str
[src]
pub fn blob(&'static self, row: Row, column: u32) -> Blob
[src]
Read a blob for a given row and column
Auto Trait Implementations
impl RefUnwindSafe for TypeReader
[src]
impl Send for TypeReader
[src]
impl Sync for TypeReader
[src]
impl Unpin for TypeReader
[src]
impl UnwindSafe for TypeReader
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,