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
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.
Trait Implementations
Extends a collection with the contents of an iterator. Read more
extend_one
)Extends a collection with exactly one element.
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Which kind of iterator are we turning this into?
Auto Trait Implementations
impl !RefUnwindSafe for Imports
impl !UnwindSafe for Imports
Blanket Implementations
Mutably borrows from an owned value. Read more