pub trait CStrLike { // Required methods fn as_ptr(&self) -> *const c_char; fn as_cstr(&self) -> &CStr; }