pub struct FrameView<'a> {
pub file: &'a str,
pub line: u32,
pub col: u32,
pub context: Option<&'a str>,
/* private fields */
}Expand description
View into a single frame of the error trace.
Fields§
§file: &'a strSource file path
line: u32Line number
col: u32Column number
context: Option<&'a str>Optional context message
Implementations§
Source§impl<'a> FrameView<'a>
impl<'a> FrameView<'a>
Sourcepub fn attachments(&self) -> impl Iterator<Item = (&'a str, &'a Value)>
pub fn attachments(&self) -> impl Iterator<Item = (&'a str, &'a Value)>
Iterate over key-value attachments on this frame with typed values.
Sourcepub fn attachments_str(&self) -> impl Iterator<Item = (&'a str, String)> + 'a
pub fn attachments_str(&self) -> impl Iterator<Item = (&'a str, String)> + 'a
Iterate over key-value attachments as strings (for backwards compatibility).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FrameView<'a>
impl<'a> RefUnwindSafe for FrameView<'a>
impl<'a> Send for FrameView<'a>
impl<'a> Sync for FrameView<'a>
impl<'a> Unpin for FrameView<'a>
impl<'a> UnwindSafe for FrameView<'a>
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