Skip to main content

format_array_string

Function format_array_string 

Source
pub fn format_array_string<const CAP: usize>(
    args: Arguments<'_>,
) -> ArrayString<CAP>
Expand description

Formats arguments into an array string with constant byte capacity.

Output is confined to the stack, so CAP must bound the formatted length. Panics when the output exceeds it or the arguments fail to format; try_format_array_string returns both as an error.