pub trait FromCStr {
type Err: Sized;
// Required method
fn from_cstr(s: &CStr) -> Result<Self, Self::Err>
where Self: Sized;
}
Expand description
Conversion from a C-style string
This trait should be used the same way as std::str::FromStr
, although
a separate .parse()
implementation is not provided &str