Function strfmt::strfmt_map

source ·
pub fn strfmt_map<F>(fmtstr: &str, f: F) -> Result<String>where
    F: FnMut(Formatter<'_, '_>) -> Result<()>,
Expand description

UNSTABLE: the Formatter object is still considered unstable Do not use this function if you aren’t willing to have changes forced on you!

format a string given the string and a closure that uses a Formatter