Skip to main content

AsKPrintCString

Trait AsKPrintCString 

Source
pub trait AsKPrintCString {
    // Required method
    fn as_c_ptr(&self) -> *const c_char;
}
Expand description

Trait implemented by types that can be formatted as a null-terminated C string (%s).

Required Methods§

Source

fn as_c_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 AsKPrintCString for &CStr

Source§

fn as_c_ptr(&self) -> *const c_char

Source§

impl AsKPrintCString for *const i8

Source§

fn as_c_ptr(&self) -> *const c_char

Source§

impl AsKPrintCString for *const u8

Source§

fn as_c_ptr(&self) -> *const c_char

Source§

impl AsKPrintCString for *mut i8

Source§

fn as_c_ptr(&self) -> *const c_char

Source§

impl AsKPrintCString for *mut u8

Source§

fn as_c_ptr(&self) -> *const c_char

Source§

impl AsKPrintCString for CStr

Source§

fn as_c_ptr(&self) -> *const c_char

Implementors§