#[repr(C)]
pub struct RTTICompleteObjectLocator { pub signature: u32, pub offset: u32, pub cd_offset: u32, pub type_descriptor: Ptr<TypeDescriptor>, pub class_descriptor: Ptr<RTTIClassHierarchyDescriptor>, }
Expand description

Complete Object Locator.

MSVC compiler puts a pointer to this structure just before the vftable. The structure is called so because it lets you find the location to the complete object from a specific vftable pointer.

Every vftable has its own Complete Object Locator.

Fields

signature: u32

Always zero?

offset: u32

Offset of this vtable in the complete class.

cd_offset: u32

Constructor displacement offset.

type_descriptor: Ptr<TypeDescriptor>

Pointer to the type descriptor of the complete class.

class_descriptor: Ptr<RTTIClassHierarchyDescriptor>

Pointer to the class hierarchy descriptor.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns a zero-initialized instance of the type.
Returns the object’s memory as a byte slice.
Returns the object’s memory as a mutable byte slice.
Returns a data view into the object’s memory.
Returns a mutable data view into the object’s memory.
Safely transmutes to another type. Read more
Safely transmutes references to another type. Read more
Safely transmutes references to another type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.