kernel::fmt - Rust
Skip to main content Module fmt kernel Module fmt Source Expand description Formatting utilities. This module is intended to be used in place of core::fmt in kernel code. Structs § Arguments This structure represents a safely precompiled version of a format string and its arguments. This cannot be generated at runtime because it cannot safely be done, so no constructors are given and the fields are private to prevent modification.
Error The error type which is returned from formatting a message into a stream. Formatter Configuration for formatting. Hashed Ptr A wrapper for pointers that formats them using kernel’s %p format specifier. Traits § Debug ? formatting. Display A copy of core::fmt::Display that allows us to implement it for foreign types. Pointer A copy of core::fmt::Pointer that allows implementing pointer formatting for foreign types.
Write A trait for writing or formatting into Unicode-accepting buffers or streams. Type Aliases § Result The type returned by formatter methods. Derive Macros § Debug Derive macro generating an impl of the trait Debug .