Struct xylem::DefaultContext[][src]

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

A Context implementation based on typemap::TypeMap.

Trait Implementations

Identifies a layer of scope.

Pushes the type to the scope stack. Read more

Pops a type from the scope stack. Read more

Gets the nth topmost scope type ID.

Gets a shared reference to the storage of type T in the newest layer of the scope. Read more

Gets a shared reference to the storage of type T in each layer, from top to bottom, if exists. Read more

Gets a mutable reference to the storage of type T in the newest layer of the scope. 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.