pub enum BundleCode {
Bytecode(Vec<u8>),
Source(String),
}Expand description
The code of a bundle.
Variants§
Bytecode(Vec<u8>)
QuickJS bytecode from nsh_js::compile_bytecode.
Source(String)
JS source; slower to start than bytecode.
Trait Implementations§
Source§impl Clone for BundleCode
impl Clone for BundleCode
Auto Trait Implementations§
impl Forget for BundleCode
impl Freeze for BundleCode
impl Move for BundleCode
impl RefUnwindSafe for BundleCode
impl Send for BundleCodewhere
RawVecInner: Send,
impl Sync for BundleCodewhere
RawVecInner: Sync,
impl Unpin for BundleCode
impl UnsafeUnpin for BundleCode
impl UnwindSafe for BundleCodewhere
RawVecInner: UnwindSafe,
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