pub struct FramePrefix {
pub prefix_kind: &'static str,
pub prefix: String,
pub suffix: String,
}Expand description
A common prefix for a frame path.
This struct represents a decomposed file path where a known prefix has been identified and separated from the rest of the path.
Fields§
§prefix_kind: &'static strThe kind of prefix used to identify this prefix.
Examples: "RUST_SRC" for Rust standard library paths,
"CARGO" for Cargo registry crate paths,
"ROOTCAUSE" for rootcause library paths.
prefix: StringThe full prefix path that was removed from the original path.
Example: "/home/user/.cargo/registry/src/index.crates. io-1949cf8c6b5b557f"
suffix: StringThe remaining path after the prefix was removed.
Example: "indexmap-2.12.1/src/map/core/entry.rs"
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FramePrefix
impl RefUnwindSafe for FramePrefix
impl Send for FramePrefix
impl Sync for FramePrefix
impl Unpin for FramePrefix
impl UnwindSafe for FramePrefix
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