pub struct Extensions { /* private fields */ }
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
Extends a collection with the contents of an iterator. Read more
🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. 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 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.