pub trait IntoCStr: Sized {
type Temp: Deref<Target = CStr>;
// Required methods
fn into(self) -> Self::Temp;
fn into_cstring(self) -> CString;
fn len(&self) -> usize;
// Provided methods
fn is_empty(&self) -> bool { ... }
unsafe fn push_to_non_null_vec(self, bs: &mut Vec<u8>) { ... }
}
Expand description
Represents any type that can be converted into something that can be deref’ed to a &CStr
.
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.