pub struct StackTrace {
pub pc: Vec<usize>,
pub cause_stack_trace: Option<Box<StackTrace>>,
}
Expand description
The program counter of the stack trace.
Fields§
§pc: Vec<usize>
The program counter of the stack trace.
cause_stack_trace: Option<Box<StackTrace>>
The cause stack trace of the stack trace.
Implementations§
Source§impl StackTrace
impl StackTrace
Sourcepub fn format_stack_trace(stack_trace: Vec<String>) -> String
pub fn format_stack_trace(stack_trace: Vec<String>) -> String
Formats the stack trace.
Sourcepub fn new() -> StackTrace
pub fn new() -> StackTrace
Creates a new stack trace.
Trait Implementations§
Source§impl Clone for StackTrace
impl Clone for StackTrace
Source§fn clone(&self) -> StackTrace
fn clone(&self) -> StackTrace
Returns a copy 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 StackTrace
impl Debug for StackTrace
Source§impl Default for StackTrace
impl Default for StackTrace
Source§fn default() -> StackTrace
fn default() -> StackTrace
Returns the “default value” for a type. Read more
Source§impl Display for StackTrace
impl Display for StackTrace
Source§impl Hash for StackTrace
impl Hash for StackTrace
Source§impl Ord for StackTrace
impl Ord for StackTrace
Source§fn cmp(&self, other: &StackTrace) -> Ordering
fn cmp(&self, other: &StackTrace) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StackTrace
impl PartialEq for StackTrace
Source§impl PartialOrd for StackTrace
impl PartialOrd for StackTrace
impl Eq for StackTrace
impl StructuralPartialEq for StackTrace
Auto Trait Implementations§
impl Freeze for StackTrace
impl RefUnwindSafe for StackTrace
impl Send for StackTrace
impl Sync for StackTrace
impl Unpin for StackTrace
impl UnwindSafe for StackTrace
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.