#[repr(transparent)]pub struct Display<'a, E: Error + ?Sized>(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 + Error + ?Sized> Ord for Display<'a, E>
impl<'a, E: Ord + Error + ?Sized> 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: PartialOrd + Error + ?Sized> PartialOrd for Display<'a, E>
impl<'a, E: PartialOrd + Error + ?Sized> PartialOrd for Display<'a, E>
impl<'a, E: Copy + Error + ?Sized> Copy for Display<'a, E>
impl<'a, E: Eq + Error + ?Sized> Eq for Display<'a, E>
impl<'a, E: Error + ?Sized> StructuralPartialEq for Display<'a, E>
Auto Trait Implementations§
impl<'a, E> Freeze for Display<'a, E>where
E: ?Sized,
impl<'a, E> RefUnwindSafe for Display<'a, E>where
E: RefUnwindSafe + ?Sized,
impl<'a, E> Send for Display<'a, E>
impl<'a, E> Sync for Display<'a, E>
impl<'a, E> Unpin for Display<'a, E>where
E: ?Sized,
impl<'a, E> UnwindSafe for Display<'a, E>where
E: RefUnwindSafe + ?Sized,
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