pub struct TypeInfoEntry<'a> { /* private fields */ }Expand description
Zero-copy view of an MSFT_TypeInfoBase structure (0x64 bytes).
Each TypeInfo describes one type in the library: an enum, struct, module, COM interface, dispatch interface, coclass, alias, or union.
Constructed by TypeLib::typeinfo;
the backing slice is guaranteed to be at least SIZE bytes.
Implementations§
Source§impl<'a> TypeInfoEntry<'a>
impl<'a> TypeInfoEntry<'a>
Sourcepub fn typekind_raw(&self) -> u32
pub fn typekind_raw(&self) -> u32
Raw typekind field (includes alignment in bits 11-15).
Sourcepub fn memoffset(&self) -> i32
pub fn memoffset(&self) -> i32
Absolute file offset to the func/var data block.
Returns a negative value when no data block exists.
Sourcepub fn celement(&self) -> u32
pub fn celement(&self) -> u32
Raw cElement field.
Low 16 bits = function count, high 16 bits = variable count.
Sourcepub fn func_count(&self) -> u16
pub fn func_count(&self) -> u16
Number of functions (low 16 bits of cElement).
Sourcepub fn guid_offset(&self) -> i32
pub fn guid_offset(&self) -> i32
Offset into the GUID table, or -1 if this type has no GUID.
Sourcepub fn name_offset(&self) -> i32
pub fn name_offset(&self) -> i32
Offset into the name table for this type’s name.
Sourcepub fn docstring_offset(&self) -> i32
pub fn docstring_offset(&self) -> i32
Offset into the string table for the doc string, or -1.
Sourcepub fn cimpltypes(&self) -> i16
pub fn cimpltypes(&self) -> i16
Number of implemented interfaces (for coclasses).
Sourcepub fn cb_size_vft(&self) -> i16
pub fn cb_size_vft(&self) -> i16
Virtual function table size in bytes.
Sourcepub fn datatype2(&self) -> i32
pub fn datatype2(&self) -> i32
For ALIAS types: secondary aliased type descriptor. Otherwise -1.
Sourcepub fn helpstringcontext(&self) -> i32
pub fn helpstringcontext(&self) -> i32
Help string context at offset 0x40.
Sourcepub fn helpcontext(&self) -> i32
pub fn helpcontext(&self) -> i32
Help context at offset 0x44.
Sourcepub fn cust_data_offset(&self) -> i32
pub fn cust_data_offset(&self) -> i32
Offset into the CDGuids directory for this type’s custom data, or -1.
Trait Implementations§
Source§impl<'a> Clone for TypeInfoEntry<'a>
impl<'a> Clone for TypeInfoEntry<'a>
Source§fn clone(&self) -> TypeInfoEntry<'a>
fn clone(&self) -> TypeInfoEntry<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more