pub struct PerlFrameClassifier { /* private fields */ }Expand description
Default Perl frame classifier.
This classifier uses path-based heuristics to determine frame categories:
- Core modules: Paths containing
/perl/,/perl5/, or standard module names - Library code: Paths in common library directories (lib, vendor, local)
- Eval code: Files named
(eval N)or with eval origin - User code: Everything else (assumed to be project code)
Implementations§
Source§impl PerlFrameClassifier
impl PerlFrameClassifier
Sourcepub fn with_user_path(self, path: impl Into<String>) -> Self
pub fn with_user_path(self, path: impl Into<String>) -> Self
Adds a path that should be considered user code.
Files under this path will be classified as user code.
Sourcepub fn with_library_path(self, path: impl Into<String>) -> Self
pub fn with_library_path(self, path: impl Into<String>) -> Self
Adds a path that should be considered library code.
Files under this path will be classified as library code.
Trait Implementations§
Source§impl Debug for PerlFrameClassifier
impl Debug for PerlFrameClassifier
Source§impl Default for PerlFrameClassifier
impl Default for PerlFrameClassifier
Source§fn default() -> PerlFrameClassifier
fn default() -> PerlFrameClassifier
Returns the “default value” for a type. Read more
Source§impl FrameClassifier for PerlFrameClassifier
impl FrameClassifier for PerlFrameClassifier
Source§fn classify(&self, frame: &StackFrame) -> FrameCategory
fn classify(&self, frame: &StackFrame) -> FrameCategory
Classifies a stack frame. Read more
Source§fn apply_classification(&self, frame: StackFrame) -> StackFrame
fn apply_classification(&self, frame: StackFrame) -> StackFrame
Applies classification to a frame, setting its presentation hint. Read more
Source§fn classify_all(
&self,
frames: Vec<StackFrame>,
include_external: bool,
) -> Vec<StackFrame>
fn classify_all( &self, frames: Vec<StackFrame>, include_external: bool, ) -> Vec<StackFrame>
Classifies and filters a list of frames. Read more
Auto Trait Implementations§
impl Freeze for PerlFrameClassifier
impl RefUnwindSafe for PerlFrameClassifier
impl Send for PerlFrameClassifier
impl Sync for PerlFrameClassifier
impl Unpin for PerlFrameClassifier
impl UnsafeUnpin for PerlFrameClassifier
impl UnwindSafe for PerlFrameClassifier
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