Struct color_backtrace::Frame
source · pub struct Frame {
pub n: usize,
pub name: Option<String>,
pub lineno: Option<u32>,
pub filename: Option<PathBuf>,
pub ip: usize,
/* private fields */
}
Fields§
§n: usize
§name: Option<String>
§lineno: Option<u32>
§filename: Option<PathBuf>
§ip: usize
Implementations§
source§impl Frame
impl Frame
sourcepub fn is_dependency_code(&self) -> bool
pub fn is_dependency_code(&self) -> bool
Heuristically determine whether the frame is likely to be part of a dependency.
If it fails to detect some patterns in your code base, feel free to drop an issue / a pull request!
sourcepub fn is_post_panic_code(&self) -> bool
pub fn is_post_panic_code(&self) -> bool
Heuristically determine whether a frame is likely to be a post panic frame.
Post panic frames are frames of a functions called after the actual panic is already in progress and don’t contain any useful information for a reader of the backtrace.
sourcepub fn is_runtime_init_code(&self) -> bool
pub fn is_runtime_init_code(&self) -> bool
Heuristically determine whether a frame is likely to be part of language runtime.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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