Struct rhai::Imports[][src]

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

(INTERNALS) A stack of imported modules. Exported under the internals feature only.

Volatile Data Structure

This type is volatile and may change.

Implementations

Get the length of this stack of imported modules.

Is this stack of imported modules empty?

Get the imported modules at a particular index.

Get the index of an imported modules by name.

Push an imported modules onto the stack.

Truncate the stack of imported modules to a particular length.

Get an iterator to this stack of imported modules in reverse order.

Get a consuming iterator to this stack of imported modules in reverse order.

Does the specified function hash key exist in this stack of imported modules?

Get specified function via its hash key.

Does the specified TypeId iterator exist in this stack of imported modules?

Get the specified TypeId iterator.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.