Enum display::DisplayError
source · #[non_exhaustive]pub enum DisplayError {
Unexpected(Error),
}
Expand description
A display error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl Debug for DisplayError
impl Debug for DisplayError
source§impl Display for DisplayError
impl Display for DisplayError
source§impl Error for DisplayError
impl Error for DisplayError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl PartialEq<DisplayError> for DisplayError
impl PartialEq<DisplayError> for DisplayError
Auto Trait Implementations§
impl !RefUnwindSafe for DisplayError
impl Send for DisplayError
impl Sync for DisplayError
impl Unpin for DisplayError
impl !UnwindSafe for DisplayError
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