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.
Fis theFmtformatting type to use.Tis 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§
impl<'a, F: Eq + ?Sized, T: Eq + ?Sized> Eq for Wrapper<'a, F, T>
impl<'a, F: ?Sized, T: ?Sized> StructuralPartialEq for Wrapper<'a, F, T>
Auto Trait Implementations§
impl<'a, F, T> Freeze for Wrapper<'a, F, T>
impl<'a, F, T> RefUnwindSafe for Wrapper<'a, F, T>
impl<'a, F, T> Send for Wrapper<'a, F, T>
impl<'a, F, T> Sync for Wrapper<'a, F, T>
impl<'a, F, T> Unpin for Wrapper<'a, F, T>
impl<'a, F, T> UnwindSafe for Wrapper<'a, F, T>
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