[−][src]Struct winmd::TypeReader
A reader of type information from Windows Metadata
Fields
files: Vec<File>
The parsed Windows metadata files the TypeReader
has access to
types: BTreeMap<String, BTreeMap<String, TypeDef>>
Types known to this TypeReader
This is a mapping between namespace names and the types inside that namespace
Implementations
impl TypeReader
[src]
pub fn from_os() -> Self
[src]
pub fn from_iter<I: IntoIterator<Item = PathBuf>>(files: I) -> Self
[src]
pub fn from_foundation() -> Self
[src]
pub fn from_build() -> &'static Self
[src]
pub fn new(files: Vec<File>) -> Self
[src]
Create a new TypeReader
from a File
s
pub fn namespaces(&self) -> impl Iterator<Item = &String>
[src]
Get all the namespace names that the TypeReader
knows about
pub fn namespace_types(
&self,
namespace: &str
) -> impl Iterator<Item = (&str, &TypeDef)>
[src]
&self,
namespace: &str
) -> impl Iterator<Item = (&str, &TypeDef)>
Get all type definitions (TypeDef
s) for a given namespace
Panics
Panics if the namespace does not exist
pub fn resolve_type_def(&self, (namespace, type_name): (&str, &str)) -> TypeDef
[src]
Resolve a type definition given its namespace and type name
Panics
Panics if no type definition for the given namespace and type name can be found
pub fn u32(&self, row: Row, column: u32) -> u32
[src]
pub fn str(&self, row: Row, column: u32) -> &str
[src]
Read a [&str
] value from a specific Row
and column
pub fn decode<T: Decode>(&self, row: Row, column: u32) -> T
[src]
Read a T: Decode
value from a specific Row
and column
pub fn list(
&self,
row: Row,
table: TableIndex,
column: u32
) -> impl Iterator<Item = Row>
[src]
&self,
row: Row,
table: TableIndex,
column: u32
) -> impl Iterator<Item = Row>
pub fn blob(&self, row: Row, column: u32) -> Blob<'_>
[src]
pub fn equal_range(
&self,
file: u16,
table: TableIndex,
column: u32,
value: u32
) -> impl Iterator<Item = Row>
[src]
&self,
file: u16,
table: TableIndex,
column: u32,
value: u32
) -> impl Iterator<Item = Row>
pub fn upper_bound(
&self,
file: u16,
table: TableIndex,
column: u32,
value: u32
) -> Row
[src]
&self,
file: u16,
table: TableIndex,
column: u32,
value: u32
) -> Row
Auto Trait Implementations
impl RefUnwindSafe for TypeReader
impl Send for TypeReader
impl Sync for TypeReader
impl Unpin for TypeReader
impl UnwindSafe for TypeReader
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,
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.
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>,