pub struct TracebackFrame {
pub function: String,
pub file: String,
pub line: u32,
pub column: Option<u32>,
pub locals: HashMap<String, String>,
}Expand description
A single frame in an exception traceback
Fields§
§function: StringFunction or method name
file: StringFile path or module name
line: u32Line number
column: Option<u32>Optional column number
locals: HashMap<String, String>Optional local variables (for debugging)
Implementations§
Trait Implementations§
Source§impl Clone for TracebackFrame
impl Clone for TracebackFrame
Source§fn clone(&self) -> TracebackFrame
fn clone(&self) -> TracebackFrame
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TracebackFrame
impl Debug for TracebackFrame
Source§impl<'de> Deserialize<'de> for TracebackFrame
impl<'de> Deserialize<'de> for TracebackFrame
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TracebackFrame
impl Display for TracebackFrame
Source§impl PartialEq for TracebackFrame
impl PartialEq for TracebackFrame
Source§impl Serialize for TracebackFrame
impl Serialize for TracebackFrame
impl StructuralPartialEq for TracebackFrame
Auto Trait Implementations§
impl Freeze for TracebackFrame
impl RefUnwindSafe for TracebackFrame
impl Send for TracebackFrame
impl Sync for TracebackFrame
impl Unpin for TracebackFrame
impl UnwindSafe for TracebackFrame
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