Struct quad_compat_rhai::Imports[][src]

pub struct Imports {
    pub source: Option<Identifier>,
    pub num_operations: u64,
    pub num_modules: usize,
    pub embedded_module_resolver: Option<Shared<StaticModuleResolver>>,
    // some fields omitted
}
Expand description

(internals) A stack of imported modules plus mutable runtime global states. Exported under the internals feature only.

Fields

source: Option<Identifier>

Source of the current context.

num_operations: u64

Number of operations performed.

num_modules: usize

Number of modules loaded.

embedded_module_resolver: Option<Shared<StaticModuleResolver>>

Embedded module resolver.

Not available under no_module.

Implementations

Create a new stack of imported modules.

Get the length of this stack of imported modules.

Is this stack of imported modules empty?

Get the imported module at a particular index.

Get the index of an imported module by name.

Push an imported module 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.

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

Get the specified function via its hash key from this stack of imported modules.

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

Get the specified TypeId iterator from this stack of imported modules.

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

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

Creates a value from an iterator. Read more

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. 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)

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.