pub struct TypeTable { /* private fields */ }

Implementations§

Returns the TypeInfo for the type with the given name.

Returns the [TypeInfo] referenced by the given abi::TypeId.

Inserts type_info into the type table.

If the type table already contained this type_info, the value is updated, and the old value is returned.

Inserts the concrete Type into the type table.

If the type table already contained this type_info, the value is updated, and the old value is returned.

Removes the specified TypeInfo from the lookup table.

Removes a type described by the given [abi::TypeInfo]. Returns None if this instance doesn’t hold any type that matches type_info.

Removes and returns the TypeInfo corresponding to name, if it exists.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a 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.