Enum deno_core::ResolutionKind
source · 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
source§fn eq(&self, other: &ResolutionKind) -> bool
fn eq(&self, other: &ResolutionKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ResolutionKind
impl StructuralEq for ResolutionKind
impl StructuralPartialEq for ResolutionKind
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.