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 Freeze for ModuleCodeBytes
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