Skip to main content

AsKPrintStr

Trait AsKPrintStr 

Source
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§

Source

fn kprint_len(&self) -> c_int

Source

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".

Implementations on Foreign Types§

Source§

impl AsKPrintStr for &CStr

Source§

fn kprint_len(&self) -> c_int

Source§

fn kprint_ptr(&self) -> *const c_char

Source§

impl AsKPrintStr for &[u8]

Source§

fn kprint_len(&self) -> c_int

Source§

fn kprint_ptr(&self) -> *const c_char

Source§

impl AsKPrintStr for &str

Source§

fn kprint_len(&self) -> c_int

Source§

fn kprint_ptr(&self) -> *const c_char

Source§

impl AsKPrintStr for CStr

Source§

fn kprint_len(&self) -> c_int

Source§

fn kprint_ptr(&self) -> *const c_char

Source§

impl AsKPrintStr for [u8]

Source§

fn kprint_len(&self) -> c_int

Source§

fn kprint_ptr(&self) -> *const c_char

Source§

impl AsKPrintStr for str

Source§

fn kprint_len(&self) -> c_int

Source§

fn kprint_ptr(&self) -> *const c_char

Source§

impl<const N: usize> AsKPrintStr for &[u8; N]

Source§

fn kprint_len(&self) -> c_int

Source§

fn kprint_ptr(&self) -> *const c_char

Source§

impl<const N: usize> AsKPrintStr for [u8; N]

Source§

fn kprint_len(&self) -> c_int

Source§

fn kprint_ptr(&self) -> *const c_char

Implementors§