Skip to main content

format

Function format 

Source
pub unsafe fn format(
    format: *const c_char,
    args: &mut VaListTag,
    handler: impl FnMut(Argument<'_>) -> c_int,
) -> c_int
Expand description

Parse a format parameter and write it somewhere.

ยงSafety

The args walk is as unsafe as any va_list: the arguments the caller passed must match the passed format, which must be a valid printf format string.