pub struct TermError { /* private fields */ }Expand description
A scalar Terms refused: why, and where in the value.
This is the type to downcast a refusal to. Its
source is the NormalizeError, so a
reporter that walks the error chain reaches the reason too.
Display shows only the reason, because the path can hold map keys and
map keys can be user data. Debug shows the reason and the path’s
shape, with every key masked. Read the path with
path.
Implementations§
Trait Implementations§
Source§impl Error for TermError
impl Error for TermError
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()
impl OpaqueDebug for TermError
Auto Trait Implementations§
impl Freeze for TermError
impl RefUnwindSafe for TermError
impl Send for TermError
impl Sync for TermError
impl Unpin for TermError
impl UnsafeUnpin for TermError
impl UnwindSafe for TermError
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