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).
Trait Implementations§
Source§impl Debug for ResolutionKind
impl Debug for ResolutionKind
Source§impl PartialEq for ResolutionKind
impl PartialEq for ResolutionKind
impl Eq for ResolutionKind
impl StructuralPartialEq for ResolutionKind
Auto Trait Implementations§
impl Freeze for ResolutionKind
impl RefUnwindSafe for ResolutionKind
impl Send for ResolutionKind
impl Sync for ResolutionKind
impl Unpin for ResolutionKind
impl UnwindSafe for ResolutionKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more