pub struct ErrorComponents { /* private fields */ }
Expand description
Error components parsed from a LuaError
.
Can be used to display a human-friendly error message and stack trace, in the following Roblox-inspired format:
Error message
[Stack Begin]
Stack trace line
Stack trace line
Stack trace line
[Stack End]
Implementations§
Source§impl ErrorComponents
impl ErrorComponents
Sourcepub fn trace(&self) -> Option<&StackTrace>
pub fn trace(&self) -> Option<&StackTrace>
Returns the stack trace, if it exists.
Trait Implementations§
Source§impl Clone for ErrorComponents
impl Clone for ErrorComponents
Source§fn clone(&self) -> ErrorComponents
fn clone(&self) -> ErrorComponents
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 ErrorComponents
impl Debug for ErrorComponents
Source§impl Default for ErrorComponents
impl Default for ErrorComponents
Source§fn default() -> ErrorComponents
fn default() -> ErrorComponents
Returns the “default value” for a type. Read more
Source§impl Display for ErrorComponents
impl Display for ErrorComponents
Auto Trait Implementations§
impl Freeze for ErrorComponents
impl RefUnwindSafe for ErrorComponents
impl Send for ErrorComponents
impl Sync for ErrorComponents
impl Unpin for ErrorComponents
impl UnwindSafe for ErrorComponents
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