Trait cstr_enum::AsCStr[][src]

pub trait AsCStr {
    fn as_cstr(&self) -> &CStr;
}

Conversion to a C-style string.

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

Required methods

fn as_cstr(&self) -> &CStr[src]

Represent self as a &CStr

Loading content...

Implementors

Loading content...