pub struct StackTraceLine { /* private fields */ }Expand description
Stack trace line parsed from a [LuaError].
Implementations§
Source§impl StackTraceLine
impl StackTraceLine
Sourcepub fn source(&self) -> StackTraceSource
pub fn source(&self) -> StackTraceSource
Returns the source of the stack trace line.
Sourcepub fn line_number(&self) -> Option<usize>
pub fn line_number(&self) -> Option<usize>
Returns the line number, if it exists.
Sourcepub fn function_name(&self) -> Option<&str>
pub fn function_name(&self) -> Option<&str>
Returns the function name, if it exists.
Trait Implementations§
Source§impl Clone for StackTraceLine
impl Clone for StackTraceLine
Source§fn clone(&self) -> StackTraceLine
fn clone(&self) -> StackTraceLine
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 StackTraceLine
impl Debug for StackTraceLine
Source§impl Default for StackTraceLine
impl Default for StackTraceLine
Source§fn default() -> StackTraceLine
fn default() -> StackTraceLine
Returns the “default value” for a type. Read more
Source§impl Display for StackTraceLine
impl Display for StackTraceLine
Auto Trait Implementations§
impl Freeze for StackTraceLine
impl RefUnwindSafe for StackTraceLine
impl Send for StackTraceLine
impl Sync for StackTraceLine
impl Unpin for StackTraceLine
impl UnwindSafe for StackTraceLine
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 more