Skip to main content

TraceParser

Trait TraceParser 

Source
pub trait TraceParser: Send + Sync {
    // Required methods
    fn detect(&self, text: &str) -> bool;
    fn parse(&self, text: &str) -> Option<StackTrace>;
}
Expand description

Recognises and parses one trace format.

Required Methods§

Source

fn detect(&self, text: &str) -> bool

Whether text looks like this format.

Source

fn parse(&self, text: &str) -> Option<StackTrace>

Parse text, or None when it has no frames or header to keep.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§