pub struct Fmt<F>(pub F)
where
F: Fn(&mut Formatter<'_>) -> Result;
Expand description
Wrapper to allow forwarding to Display::fmt
, Debug::fmt
, etc.
Tuple Fields§
§0: F
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for Fmt<F>where
F: Freeze,
impl<F> RefUnwindSafe for Fmt<F>where
F: RefUnwindSafe,
impl<F> Send for Fmt<F>where
F: Send,
impl<F> Sync for Fmt<F>where
F: Sync,
impl<F> Unpin for Fmt<F>where
F: Unpin,
impl<F> UnwindSafe for Fmt<F>where
F: UnwindSafe,
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