Enum deno_core::ModuleType
source · pub enum ModuleType {
JavaScript,
Json,
}
Expand description
A type of module to be executed.
For non-JavaScript
modules, this value doesn’t tell
how to interpret the module; it is only used to validate
the module against an import assertion (if one is present
in the import statement).
Variants§
Trait Implementations§
source§impl Clone for ModuleType
impl Clone for ModuleType
source§fn clone(&self) -> ModuleType
fn clone(&self) -> ModuleType
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 ModuleType
impl Debug for ModuleType
source§impl Display for ModuleType
impl Display for ModuleType
source§impl Hash for ModuleType
impl Hash for ModuleType
source§impl PartialEq<ModuleType> for ModuleType
impl PartialEq<ModuleType> for ModuleType
source§fn eq(&self, other: &ModuleType) -> bool
fn eq(&self, other: &ModuleType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ModuleType
impl Eq for ModuleType
impl StructuralEq for ModuleType
impl StructuralPartialEq for ModuleType
Auto Trait Implementations§
impl RefUnwindSafe for ModuleType
impl Send for ModuleType
impl Sync for ModuleType
impl Unpin for ModuleType
impl UnwindSafe for ModuleType
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.