pub struct PerlStackParser { /* private fields */ }Expand description
Parser for Perl debugger stack trace output.
This parser converts text output from the Perl debugger’s stack trace
commands (T, y, etc.) into structured StackFrame representations.
Implementations§
Source§impl PerlStackParser
impl PerlStackParser
Sourcepub fn with_unknown_frames(self, include: bool) -> Self
pub fn with_unknown_frames(self, include: bool) -> Self
Sets whether to include frames with no source location.
Sourcepub fn with_auto_ids(self, auto: bool) -> Self
pub fn with_auto_ids(self, auto: bool) -> Self
Sets whether to auto-assign frame IDs.
Sourcepub fn with_starting_id(self, id: i64) -> Self
pub fn with_starting_id(self, id: i64) -> Self
Sets the starting ID for auto-assignment.
Sourcepub fn parse_frame(&mut self, line: &str, id: i64) -> Option<StackFrame>
pub fn parse_frame(&mut self, line: &str, id: i64) -> Option<StackFrame>
Parses a single stack frame line.
§Arguments
line- A line from stack trace outputid- The frame ID to assign (ignored if auto_assign_ids is true)
§Returns
A parsed StackFrame if the line matches a known format.
Sourcepub fn parse_stack_trace(&mut self, output: &str) -> Vec<StackFrame>
pub fn parse_stack_trace(&mut self, output: &str) -> Vec<StackFrame>
Sourcepub fn looks_like_frame(line: &str) -> bool
pub fn looks_like_frame(line: &str) -> bool
Determines if a line looks like a stack frame.
This can be used for filtering lines before full parsing.
Trait Implementations§
Source§impl Debug for PerlStackParser
impl Debug for PerlStackParser
Source§impl Default for PerlStackParser
impl Default for PerlStackParser
Source§fn default() -> PerlStackParser
fn default() -> PerlStackParser
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PerlStackParser
impl RefUnwindSafe for PerlStackParser
impl Send for PerlStackParser
impl Sync for PerlStackParser
impl Unpin for PerlStackParser
impl UnsafeUnpin for PerlStackParser
impl UnwindSafe for PerlStackParser
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