pub struct PanicLocation {
pub file: String,
pub line: u32,
pub column: u32,
}Expand description
Where a contract body panicked.
The SDK holds this same struct inside its FaultInfo rather than
mirroring it, so a location is described in one place.
Fields§
§file: StringSource file, as panic! recorded it.
line: u321-based line within file.
column: u321-based column within the line.
Trait Implementations§
Source§impl Clone for PanicLocation
impl Clone for PanicLocation
Source§fn clone(&self) -> PanicLocation
fn clone(&self) -> PanicLocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PanicLocation
impl Debug for PanicLocation
Source§impl Display for PanicLocation
impl Display for PanicLocation
impl Eq for PanicLocation
Source§impl PartialEq for PanicLocation
impl PartialEq for PanicLocation
impl StructuralPartialEq for PanicLocation
Auto Trait Implementations§
impl Freeze for PanicLocation
impl RefUnwindSafe for PanicLocation
impl Send for PanicLocation
impl Sync for PanicLocation
impl Unpin for PanicLocation
impl UnsafeUnpin for PanicLocation
impl UnwindSafe for PanicLocation
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