#[repr(u8)]pub enum ModuleLoadMechanism {
EsModule = 0,
CommonJsRequire = 1,
}Expand description
The runtime mechanism used to load a module.
Variants§
EsModule = 0
ECMAScript module loading through imports, re-exports, or import globs.
CommonJsRequire = 1
CommonJS module loading through require() or require.context.
Trait Implementations§
Source§impl Clone for ModuleLoadMechanism
impl Clone for ModuleLoadMechanism
impl Copy for ModuleLoadMechanism
Source§impl Debug for ModuleLoadMechanism
impl Debug for ModuleLoadMechanism
impl<'__de> Decode<'__de> for ModuleLoadMechanismwhere
'__de:,
Source§impl<'de> Deserialize<'de> for ModuleLoadMechanism
impl<'de> Deserialize<'de> for ModuleLoadMechanism
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Encode for ModuleLoadMechanism
impl Eq for ModuleLoadMechanism
Source§impl Hash for ModuleLoadMechanism
impl Hash for ModuleLoadMechanism
Source§impl PartialEq for ModuleLoadMechanism
impl PartialEq for ModuleLoadMechanism
Source§impl Serialize for ModuleLoadMechanism
impl Serialize for ModuleLoadMechanism
impl StructuralPartialEq for ModuleLoadMechanism
Auto Trait Implementations§
impl Freeze for ModuleLoadMechanism
impl RefUnwindSafe for ModuleLoadMechanism
impl Send for ModuleLoadMechanism
impl Sync for ModuleLoadMechanism
impl Unpin for ModuleLoadMechanism
impl UnsafeUnpin for ModuleLoadMechanism
impl UnwindSafe for ModuleLoadMechanism
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DecodeOwned for Twhere
T: for<'de> Decode<'de>,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.