Struct type_map::TypeMap[][src]

pub struct TypeMap { /* fields omitted */ }
Expand description

The typemap container

Implementations

Create an empty TypeMap.

Insert a value into this TypeMap.

If a value of this type already exists, it will be returned.

Check if container contains value for type

Get a reference to a value previously inserted on this TypeMap.

Get a mutable reference to a value previously inserted on this TypeMap.

Remove a value from this TypeMap.

If a value of this type exists, it will be returned.

Clear the TypeMap of all inserted values.

Get an entry in the TypeMap for in-place manipulation.

Trait Implementations

Formats the value using the given formatter. 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

Performs the conversion.

Performs the conversion.

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.