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
JavaScript
Json
Trait Implementations
sourceimpl Clone for ModuleType
impl Clone for ModuleType
sourcefn clone(&self) -> ModuleType
fn clone(&self) -> ModuleType
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ModuleType
impl Debug for ModuleType
sourceimpl Display for ModuleType
impl Display for ModuleType
sourceimpl Hash for ModuleType
impl Hash for ModuleType
sourceimpl PartialEq<ModuleType> for ModuleType
impl PartialEq<ModuleType> for ModuleType
sourcefn eq(&self, other: &ModuleType) -> bool
fn eq(&self, other: &ModuleType) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.