pub struct Parsers { /* private fields */ }Expand description
An ordered set of parsers; the first that detects a trace parses it.
Implementations§
Source§impl Parsers
impl Parsers
Sourcepub fn with_parser(self, parser: impl TraceParser + 'static) -> Self
pub fn with_parser(self, parser: impl TraceParser + 'static) -> Self
Try parser before the built-in ones.
Sourcepub fn parse(&self, text: &str) -> Option<StackTrace>
pub fn parse(&self, text: &str) -> Option<StackTrace>
Parse text with the first parser that detects it.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Parsers
impl !UnwindSafe for Parsers
impl Freeze for Parsers
impl Send for Parsers
impl Sync for Parsers
impl Unpin for Parsers
impl UnsafeUnpin for Parsers
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