Function compile_fmt::clip
source · pub const fn clip<'a>(clip_at: usize, using: &'static str) -> Fmt<&'a str>
Expand description
Creates a format that will clip the value to the specified max char width (not byte width!). If clipped, the end of the string will be replaced with the specified replacer, which can be empty.
Panics
Panics if clip_at
is zero.