pub enum ResolutionKind {
    MainModule,
    Import,
    DynamicImport,
}

Variants§

§

MainModule

This kind is used in only one situation: when a module is loaded via JsRuntime::load_main_module and is the top-level module, ie. the one passed as an argument to JsRuntime::load_main_module.

§

Import

This kind is returned for all other modules during module load, that are static imports.

§

DynamicImport

This kind is returned for all modules that are loaded as a result of a call to import() API (ie. top-level module as well as all its dependencies, and any other import() calls from that load).

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.