pub trait FromWordPointer<'a>: Sized + 'a {
type Err: Display;
// Required method
fn from_cstr(s: &'a CStr) -> Result<Self, Self::Err>;
}Expand description
Parse a value from a CStr instance.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<'a, T: FromWordPointer<'a>> FromWordPointer<'a> for Option<T>
impl<'a, T: FromWordPointer<'a>> FromWordPointer<'a> for Option<T>
Source§impl<'a> FromWordPointer<'a> for &'a OsStr
Available on Unix only.
impl<'a> FromWordPointer<'a> for &'a OsStr
Available on Unix only.
Source§impl<'a> FromWordPointer<'a> for &'a Path
Available on Unix only.
impl<'a> FromWordPointer<'a> for &'a Path
Available on Unix only.
Source§impl<'a> FromWordPointer<'a> for &'a str
impl<'a> FromWordPointer<'a> for &'a str
Source§impl<'a> FromWordPointer<'a> for OsString
Available on Unix only.
impl<'a> FromWordPointer<'a> for OsString
Available on Unix only.
Source§impl<'a> FromWordPointer<'a> for PathBuf
Available on Unix only.
impl<'a> FromWordPointer<'a> for PathBuf
Available on Unix only.