pub struct Report<'a> { /* private fields */ }Expand description
A Report customizes how an error is displayed.
Implementations§
Source§impl<'a> Report<'a>
impl<'a> Report<'a>
Sourcepub fn location(self, value: bool) -> Self
pub fn location(self, value: bool) -> Self
Sets whether location info is printed.
Note that location info is only captured if environment variable
RUST_BACKTRACE is set to 1 or full.
Sourcepub fn sources(self, format: SourceFormat) -> Self
pub fn sources(self, format: SourceFormat) -> Self
Prints the error’s sources.
Sourcepub fn fmt_location(&'a self, f: &mut Formatter<'_>) -> Result
pub fn fmt_location(&'a self, f: &mut Formatter<'_>) -> Result
Formats only the location.
Sourcepub fn fmt_sources(
&'a self,
f: &mut Formatter<'_>,
format: SourceFormat,
) -> Result
pub fn fmt_sources( &'a self, f: &mut Formatter<'_>, format: SourceFormat, ) -> Result
Formats only the sources.
Trait Implementations§
impl<'a> Copy for Report<'a>
Auto Trait Implementations§
impl<'a> Freeze for Report<'a>
impl<'a> !RefUnwindSafe for Report<'a>
impl<'a> Send for Report<'a>
impl<'a> Sync for Report<'a>
impl<'a> Unpin for Report<'a>
impl<'a> !UnwindSafe for Report<'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