Struct pretty_error_debug::Display
source · pub struct Display<'a, E: ?Sized + Error>(pub &'a E);
Expand description
Wrap a reference to an Error
to display its error chain with format!("{}")
.
Tuple Fields§
§0: &'a E
Implementations§
Trait Implementations§
source§impl<'a, E: Ord + ?Sized + Error> Ord for Display<'a, E>
impl<'a, E: Ord + ?Sized + Error> Ord for Display<'a, E>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a, E: PartialEq + ?Sized + Error> PartialEq<Display<'a, E>> for Display<'a, E>
impl<'a, E: PartialEq + ?Sized + Error> PartialEq<Display<'a, E>> for Display<'a, E>
source§impl<'a, E: PartialOrd + ?Sized + Error> PartialOrd<Display<'a, E>> for Display<'a, E>
impl<'a, E: PartialOrd + ?Sized + Error> PartialOrd<Display<'a, E>> for Display<'a, E>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'a, E: Copy + ?Sized + Error> Copy for Display<'a, E>
impl<'a, E: Eq + ?Sized + Error> Eq for Display<'a, E>
impl<'a, E: ?Sized + Error> StructuralEq for Display<'a, E>
impl<'a, E: ?Sized + Error> StructuralPartialEq for Display<'a, E>
Auto Trait Implementations§
impl<'a, E: ?Sized> RefUnwindSafe for Display<'a, E>where E: RefUnwindSafe,
impl<'a, E: ?Sized> Send for Display<'a, E>where E: Sync,
impl<'a, E: ?Sized> Sync for Display<'a, E>where E: Sync,
impl<'a, E: ?Sized> Unpin for Display<'a, E>
impl<'a, E: ?Sized> UnwindSafe for Display<'a, E>where E: RefUnwindSafe,
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