Enum deno_core::ModuleSourceCode
source · pub enum ModuleSourceCode {
String(ModuleCode),
Bytes(Vec<u8>),
}
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(ModuleCode)
Bytes(Vec<u8>)
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