pub trait AsKPrintStr {
// Required methods
fn kprint_len(&self) -> c_int;
fn kprint_ptr(&self) -> *const c_char;
}Expand description
Trait implemented by types that can be formatted as a string slice (%.*s).
Required Methods§
fn kprint_len(&self) -> c_int
fn kprint_ptr(&self) -> *const c_char
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".