Enum deno_core::ModuleSourceCode
source · pub enum ModuleSourceCode {
String(ModuleCodeString),
Bytes(ModuleCodeBytes),
}
Expand description
The actual source code returned from the loader. Most embedders should try to return bytes and let deno_core interpret if the module should be converted to a string or not.
Variants§
String(ModuleCodeString)
Bytes(ModuleCodeBytes)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ModuleSourceCode
impl Send for ModuleSourceCode
impl Sync for ModuleSourceCode
impl Unpin for ModuleSourceCode
impl UnwindSafe for ModuleSourceCode
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