Enum deno_core::ModuleResolutionError
source · pub enum ModuleResolutionError {
InvalidUrl(ParseError),
InvalidBaseUrl(ParseError),
InvalidPath(PathBuf),
ImportPrefixMissing(String, Option<String>),
}
Expand description
Error indicating the reason resolving a module specifier failed.
Variants§
InvalidUrl(ParseError)
InvalidBaseUrl(ParseError)
InvalidPath(PathBuf)
ImportPrefixMissing(String, Option<String>)
Trait Implementations§
source§impl Clone for ModuleResolutionError
impl Clone for ModuleResolutionError
source§fn clone(&self) -> ModuleResolutionError
fn clone(&self) -> ModuleResolutionError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ModuleResolutionError
impl Debug for ModuleResolutionError
source§impl Display for ModuleResolutionError
impl Display for ModuleResolutionError
source§impl Error for ModuleResolutionError
impl Error for ModuleResolutionError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq<ModuleResolutionError> for ModuleResolutionError
impl PartialEq<ModuleResolutionError> for ModuleResolutionError
source§fn eq(&self, other: &ModuleResolutionError) -> bool
fn eq(&self, other: &ModuleResolutionError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ModuleResolutionError
impl StructuralEq for ModuleResolutionError
impl StructuralPartialEq for ModuleResolutionError
Auto Trait Implementations§
impl RefUnwindSafe for ModuleResolutionError
impl Send for ModuleResolutionError
impl Sync for ModuleResolutionError
impl Unpin for ModuleResolutionError
impl UnwindSafe for ModuleResolutionError
Blanket Implementations§
source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.