Module safer_ffi::char_p[][src]

Expand description

char *-compatible strings (slim pointers), for easier use from within C. They thus do not support inner nulls, nor string appending.

Structs

InvalidNulTerminator
char_p_boxed

A #[repr(c)] null-terminated UTF-8 encoded string, for compatibility with both the char * C API and Rust str.

char_p_raw

Same as char_p_ref, but without any lifetime attached whatsoever.

char_p_ref

A #[repr(c)] null-terminated UTF-8 encoded string, for compatibility with both the C char * API and Rust’s str.

Functions

newalloc