pub struct ErrorReport<'a> { /* private fields */ }Expand description
An error formatted with source context and a call trace when available.
Create one with Error::report and print it with eprintln!("{report}").
Formatting is bounded by the configured DiagnosticLimits and never
runs script code.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ErrorReport<'a>
impl<'a> !RefUnwindSafe for ErrorReport<'a>
impl<'a> Send for ErrorReport<'a>
impl<'a> Sync for ErrorReport<'a>
impl<'a> Unpin for ErrorReport<'a>
impl<'a> UnsafeUnpin for ErrorReport<'a>
impl<'a> !UnwindSafe for ErrorReport<'a>
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