pub struct Error<S> { /* private fields */ }
Expand description
An Error
type targetting errors tied to source file contents
Most of the utility of this type is in its implementation of Display
which
renders the error next along with the relative line of code
Trait Implementations§
Source§impl<S> Display for Error<S>
Creates a colorized display of error information
impl<S> Display for Error<S>
Creates a colorized display of error information
You can disable color by exporting the NO_COLOR
environment variable
to anything but “0”
Source§impl<S> Error for Error<S>
impl<S> Error for Error<S>
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<S> Freeze for Error<S>where
S: Freeze,
impl<S> RefUnwindSafe for Error<S>where
S: RefUnwindSafe,
impl<S> Send for Error<S>where
S: Send,
impl<S> Sync for Error<S>where
S: Sync,
impl<S> Unpin for Error<S>where
S: Unpin,
impl<S> UnwindSafe for Error<S>where
S: UnwindSafe,
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