pub struct Wrapper<'a, F: ?Sized, T: ?Sized> { /* private fields */ }
Expand description
Wrapper type to replace the fmt::Display
and fmt::Debug
behavior of its contents with
a Fmt
implementation.
F
is theFmt
formatting type to use.T
is the type of value to be printed.
You can use refmt()
or Refmt::refmt()
to construct this.
To enable using this wrapper inside assert_eq
, it implements PartialEq
(comparing both value and format).
Trait Implementations§
source§impl<'a, F: PartialEq + ?Sized, T: PartialEq + ?Sized> PartialEq for Wrapper<'a, F, T>
impl<'a, F: PartialEq + ?Sized, T: PartialEq + ?Sized> PartialEq for Wrapper<'a, F, T>
impl<'a, F: Eq + ?Sized, T: Eq + ?Sized> Eq for Wrapper<'a, F, T>
impl<'a, F: ?Sized, T: ?Sized> StructuralEq for Wrapper<'a, F, T>
impl<'a, F: ?Sized, T: ?Sized> StructuralPartialEq for Wrapper<'a, F, T>
Auto Trait Implementations§
impl<'a, F: ?Sized, T: ?Sized> RefUnwindSafe for Wrapper<'a, F, T>where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, F: ?Sized, T: ?Sized> Send for Wrapper<'a, F, T>
impl<'a, F: ?Sized, T: ?Sized> Sync for Wrapper<'a, F, T>
impl<'a, F: ?Sized, T: ?Sized> Unpin for Wrapper<'a, F, T>
impl<'a, F: ?Sized, T: ?Sized> UnwindSafe for Wrapper<'a, F, T>where
F: RefUnwindSafe,
T: 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