pub struct PrintTracer<'s> { /* private fields */ }Expand description
Tracer that collects execution trace for debugging.
Implementations§
Trait Implementations§
Source§impl Tracer for PrintTracer<'_>
impl Tracer for PrintTracer<'_>
Source§fn trace_instruction(&mut self, ip: u16, instr: &Instruction<'_>)
fn trace_instruction(&mut self, ip: u16, instr: &Instruction<'_>)
Called before executing an instruction.
Called after navigation succeeds.
Called when navigation fails (no child/sibling exists).
Source§fn trace_match_success(&mut self, node: Node<'_>)
fn trace_match_success(&mut self, node: Node<'_>)
Called after type check succeeds.
Source§fn trace_match_failure(&mut self, node: Node<'_>)
fn trace_match_failure(&mut self, node: Node<'_>)
Called after type check fails.
Source§fn trace_field_success(&mut self, field_id: NonZero<u16>)
fn trace_field_success(&mut self, field_id: NonZero<u16>)
Called after field check succeeds.
Source§fn trace_field_failure(&mut self, _node: Node<'_>)
fn trace_field_failure(&mut self, _node: Node<'_>)
Called after field check fails.
Source§fn trace_effect(&mut self, effect: &RuntimeEffect<'_>)
fn trace_effect(&mut self, effect: &RuntimeEffect<'_>)
Called after emitting an effect.
Source§fn trace_effect_suppressed(&mut self, opcode: EffectOpcode, payload: usize)
fn trace_effect_suppressed(&mut self, opcode: EffectOpcode, payload: usize)
Called when an effect is suppressed (inside @_ capture).
Source§fn trace_suppress_control(&mut self, opcode: EffectOpcode, suppressed: bool)
fn trace_suppress_control(&mut self, opcode: EffectOpcode, suppressed: bool)
Called for SuppressBegin/SuppressEnd control effects.
suppressed is true if already inside another suppress scope.Source§fn trace_call(&mut self, target_ip: u16)
fn trace_call(&mut self, target_ip: u16)
Called when entering a definition via Call.
Source§fn trace_return(&mut self)
fn trace_return(&mut self)
Called when returning from a definition.
Source§fn trace_checkpoint_created(&mut self, ip: u16)
fn trace_checkpoint_created(&mut self, ip: u16)
Called when a checkpoint is created.
Source§fn trace_backtrack(&mut self)
fn trace_backtrack(&mut self)
Called when backtracking occurs.
Source§fn trace_enter_entrypoint(&mut self, target_ip: u16)
fn trace_enter_entrypoint(&mut self, target_ip: u16)
Called when entering an entrypoint (for section labels).
Source§fn trace_enter_preamble(&mut self)
fn trace_enter_preamble(&mut self)
Called when entering the preamble (bootstrap wrapper).
Auto Trait Implementations§
impl<'s> Freeze for PrintTracer<'s>
impl<'s> RefUnwindSafe for PrintTracer<'s>
impl<'s> Send for PrintTracer<'s>
impl<'s> Sync for PrintTracer<'s>
impl<'s> Unpin for PrintTracer<'s>
impl<'s> UnwindSafe for PrintTracer<'s>
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