pub struct DebugError {
pub message: String,
pub location: &'static Location<'static>,
}Fields§
§message: String§location: &'static Location<'static>Implementations§
Source§impl DebugError
An error type that captures the location where it was created
impl DebugError
An error type that captures the location where it was created
DebugError automatically grabs the file and line number where it was created,
making debugging much easier by showing exactly where errors originate.
Trait Implementations§
Source§impl Clone for DebugError
impl Clone for DebugError
Source§impl Debug for DebugError
impl Debug for DebugError
Source§impl Display for DebugError
impl Display for DebugError
Source§impl Error for DebugError
impl Error for DebugError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Forget for DebugError
impl Freeze for DebugError
impl Move for DebugError
impl RefUnwindSafe for DebugError
impl Send for DebugError
impl Sync for DebugError
impl Unpin for DebugError
impl UnsafeUnpin for DebugError
impl UnwindSafe for DebugError
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