Enum deno_core::ModuleCodeBytes
source · pub enum ModuleCodeBytes {
Static(&'static [u8]),
Boxed(Box<[u8]>),
Arc(Arc<[u8]>),
}
Variants§
Static(&'static [u8])
Created from static data.
Boxed(Box<[u8]>)
An owned chunk of data. Note that we use Box
rather than Vec
to avoid
the storage overhead.
Arc(Arc<[u8]>)
Code loaded from the deno_graph
infrastructure.
Implementations§
Trait Implementations§
source§impl Debug for ModuleCodeBytes
impl Debug for ModuleCodeBytes
source§impl From<&'static [u8]> for ModuleCodeBytes
impl From<&'static [u8]> for ModuleCodeBytes
Auto Trait Implementations§
impl RefUnwindSafe for ModuleCodeBytes
impl Send for ModuleCodeBytes
impl Sync for ModuleCodeBytes
impl Unpin for ModuleCodeBytes
impl UnwindSafe for ModuleCodeBytes
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