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.