Trait c_str::FromCStr
[−]
[src]
pub trait FromCStr { unsafe fn from_c_str(c_str: *const c_char) -> Self; unsafe fn from_raw_buf(c_str: *const u8) -> Self; }
A generic trait for converting a *const c_str to another Rust type
Required Methods
unsafe fn from_c_str(c_str: *const c_char) -> Self
Copy the c_str into the returned type
unsafe fn from_raw_buf(c_str: *const u8) -> Self
the same as from_c_str but for old code compatibility