Struct externalities::Extensions[][src]

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

Stores extensions that should be made available through the externalities.

Implementations

Create new instance of Self.

Register the given extension.

Register extension extension using the given type_id.

Return a mutable reference to the requested extension.

Deregister extension for the given type_id.

Returns true when the extension was registered.

Returns a mutable iterator over all extensions.

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.