Skip to main content

Module backend

Module backend 

Source

Traits§

AsKPrintCString
Trait implemented by types that can be formatted as a null-terminated C string (%s).
AsKPrintChar
Trait implemented by types that can be formatted as a character ({:c}).
AsKPrintPointer
Trait implemented by pointer types formatted with {:p} / {:#p}.
AsKPrintSignedInt
Trait implemented by signed integer types formatted with %lld.
AsKPrintStr
Trait implemented by types that can be formatted as a string slice (%.*s).
AsKPrintUnsignedInt
Trait implemented by unsigned integer types formatted with %llu, %llx, %llo.

Functions§

hex_alt_prefix_width
Computes the field width for the "0x" prefix in space-padded alternate hex formatting (%*s%llx) so that the total output width (leading spaces + 2-byte prefix + hex digits) is at least width.
printf⚠
snprintf⚠