#[repr(transparent)]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: PartialOrd + ?Sized + Error> PartialOrd for Display<'a, E>
impl<'a, E: PartialOrd + ?Sized + Error> PartialOrd for Display<'a, E>
impl<'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> 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