Struct nested_modules::Context[][src]

pub struct Context<K, V> { /* fields omitted */ }
Expand description

A module with a path to an open submodule.

Implementations

Create a new context with a default root module as current open module.

Open a default module inside the previously open module.

Open a module inside the previously open module.

Use the provided module if the module with the given name does not exist.

Open a module inside the previously open module.

Use the provided closure if the module with the given name does not exist.

Insert a module into the currently open module.

Remove a module from the currently open module.

Close the currently open module.

Return false if the current open module is the root module.

Find modules matching the given path from the currently open module.

Return a reference to the currently open module.

Return a mutable reference to the currently open module.

Return the path of the currently open module.

Trait Implementations

Returns the “default value” for a type. Read more

Performs the conversion.

Performs the conversion.

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.