pub struct TypeReader {
pub files: Vec<File>,
/* private fields */
}
Expand description
A reader of type information from Windows Metadata
Fields§
§files: Vec<File>
The parsed Windows metadata files the TypeReader
has access to
Implementations§
Source§impl TypeReader
impl TypeReader
pub fn get() -> &'static Self
pub fn find_lowercase_namespace( &'static self, lowercase: &str, ) -> Option<&'static str>
Sourcepub fn namespaces(&self) -> impl Iterator<Item = &String>
pub fn namespaces(&self) -> impl Iterator<Item = &String>
Get all the namespace names that the TypeReader
knows about
Sourcepub fn namespace_types(
&'static self,
namespace: &str,
) -> impl Iterator<Item = Type> + '_
pub fn namespace_types( &'static self, namespace: &str, ) -> impl Iterator<Item = Type> + '_
pub fn expect_type(&'static self, (namespace, type_name): (&str, &str)) -> Type
pub fn expect_type_def( &'static self, (namespace, type_name): (&str, &str), ) -> TypeDef
Auto Trait Implementations§
impl Freeze for TypeReader
impl RefUnwindSafe for TypeReader
impl Send for TypeReader
impl Sync for TypeReader
impl Unpin for TypeReader
impl UnwindSafe for TypeReader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more