pub struct ImpFile<'a> { /* private fields */ }Expand description
Zero-copy view of a variable-length import-file entry.
Each entry describes one imported type library: its GUID, locale, version, and filename.
Implementations§
Source§impl<'a> ImpFile<'a>
impl<'a> ImpFile<'a>
Sourcepub const HEADER_SIZE: usize = 0x0E
pub const HEADER_SIZE: usize = 0x0E
Minimum header size before the filename (GUID offset + LCID + version + size field).
Sourcepub fn guid_offset(&self) -> i32
pub fn guid_offset(&self) -> i32
Offset into the GUID table for this imported library’s GUID.
Sourcepub fn major_version(&self) -> u16
pub fn major_version(&self) -> u16
Major version of the imported library.
Sourcepub fn minor_version(&self) -> u16
pub fn minor_version(&self) -> u16
Minor version of the imported library.
Sourcepub fn size_field(&self) -> u16
pub fn size_field(&self) -> u16
Raw size field at offset 0x0C.
The filename length in bytes is size_field >> 2.
The low 2 bits are flags.
Sourcepub fn entry_size(&self) -> usize
pub fn entry_size(&self) -> usize
Total size of this entry in bytes (header + name, padded to 4-byte alignment).
Trait Implementations§
impl<'a> Copy for ImpFile<'a>
Auto Trait Implementations§
impl<'a> Freeze for ImpFile<'a>
impl<'a> RefUnwindSafe for ImpFile<'a>
impl<'a> Send for ImpFile<'a>
impl<'a> Sync for ImpFile<'a>
impl<'a> Unpin for ImpFile<'a>
impl<'a> UnsafeUnpin for ImpFile<'a>
impl<'a> UnwindSafe for ImpFile<'a>
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