pub struct ContextTracer;Expand description
Simple tracer for context selection decisions.
Implementations§
Source§impl ContextTracer
impl ContextTracer
pub fn new() -> Self
pub fn trace(&self, context: &AssembledContext)
Sourcepub fn export_trace(
&self,
context: &AssembledContext,
path: &Path,
) -> Result<()>
pub fn export_trace( &self, context: &AssembledContext, path: &Path, ) -> Result<()>
Export trace to a JSON file for debugging.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ContextTracer
impl RefUnwindSafe for ContextTracer
impl Send for ContextTracer
impl Sync for ContextTracer
impl Unpin for ContextTracer
impl UnsafeUnpin for ContextTracer
impl UnwindSafe for ContextTracer
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