Function manyfmt::refmt

source ·
pub fn refmt<'a, F: ?Sized, T>(fopt: &'a F, value: &'a T) -> Wrapper<'a, F, T>
where T: Fmt<F> + ?Sized,
Expand description

Wrap value so that when formatted with fmt::Debug or fmt::Display, it uses the given Fmt custom format type instead.

This operation is also available as the extension trait method Refmt::refmt().