Skip to main content

format_small_string

Function format_small_string 

Source
pub fn format_small_string<const CAP: usize>(
    args: Arguments<'_>,
) -> SmallString<[u8; CAP]>
Expand description

Formats arguments into a small string with an inline byte capacity.

Output beyond CAP bytes spills to the heap. Panics if formatting the arguments fails; try_format_small_string returns that error instead.