Trait AsCStr

Source
pub trait AsCStr {
    // Required method
    fn as_cstr(&self) -> &CStr;
}
Expand description

Conversion to a C-style string.

If using the derive macro, this will be a cheap conversion.

Required Methods§

Source

fn as_cstr(&self) -> &CStr

Represent self as a &CStr

Implementors§