Text of rust.docs.kernel.org › next › macros › index.html as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

macros - Rust

Skip to main content Crate macros Crate macros Source Expand description Crate for all kernel procedural macros. Macros § Covariant ForLt Obtain a type that implements CovariantForLt (and ForLt ) for the given higher-ranked type. ForLt Obtain a type that implements ForLt for the given higher-ranked type. concat_ idents Concatenate two identifiers. fmt Like core::format_args! , but automatically wraps arguments in kernel::fmt::Adapter . module Declares a kernel module. paste Paste identifiers together.

Attribute Macros § export Export a function so that C code can call it via a header file. kunit_ tests Registers a KUnit test suite and its test cases using a user-space like syntax. vtable Declares or implements a vtable trait.