pub enum DebugInfoMode {
Full,
StripSource,
StripDebug,
}Expand description
Runtime-wide policy for the currently represented, JS-observable portion
of QuickJS JS_SetStripInfo.
The selected mode is sampled when a function is compiled. Existing bytecode keeps the debug payload it was published with.
Variants§
Full
Keep filename, PC positions and exact authored function source.
StripSource
Keep filename and PC positions but omit authored function source.
StripDebug
Omit function source and location metadata from the bytecode payload.
Trait Implementations§
Source§impl Clone for DebugInfoMode
impl Clone for DebugInfoMode
impl Copy for DebugInfoMode
Source§impl Debug for DebugInfoMode
impl Debug for DebugInfoMode
Source§impl Default for DebugInfoMode
impl Default for DebugInfoMode
impl Eq for DebugInfoMode
Source§impl Hash for DebugInfoMode
impl Hash for DebugInfoMode
Source§impl PartialEq for DebugInfoMode
impl PartialEq for DebugInfoMode
impl StructuralPartialEq for DebugInfoMode
Auto Trait Implementations§
impl Freeze for DebugInfoMode
impl RefUnwindSafe for DebugInfoMode
impl Send for DebugInfoMode
impl Sync for DebugInfoMode
impl Unpin for DebugInfoMode
impl UnsafeUnpin for DebugInfoMode
impl UnwindSafe for DebugInfoMode
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