Trait lua::ffi::AsCStr[−][src]

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

Trait to convert types into nul-terminated strings, for when they need to be passed to API functions such as lua_setglobal or lua_getglobal.

Required Methods

Implementors