Function poloto::moveable_format[][src]

pub fn moveable_format(
    func: impl Fn(&mut Formatter<'_>) -> Result
) -> impl Display

Convert a moved closure into a impl fmt::Display. This is useful because std’s format_args!() macro has a shorter lifetime.