pub struct TypeData { /* private fields */ }
Expand description

Type-specific data that is filled in during type creation.

Implementations

Returns the type ID.

Returns a pointer to the native parent class.

This is used for chaining up to the parent class’ implementation of virtual methods.

Returns a pointer to the native parent interface struct for interface type_.

This is used for chaining up to the parent interface’s implementation of virtual methods.

Panics

This function panics if the type to which the TypeData belongs does not implement the given interface or was not registered yet.

Returns a pointer to the class implementation specific data.

This is used for class implementations to store additional data.

Gets a mutable reference of the class implementation specific data.

Safety

This can only be used while the type is being initialized.

Sets class specific implementation data.

Safety

This can only be used while the type is being initialized.

Panics

If the class_data already contains a data for the specified type_.

Returns the offset of the private implementation struct in bytes relative to the beginning of the instance struct.

Trait Implementations

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 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.