pub trait FromNonEmptyStr: Sized {
type Error;
// Required method
fn from_non_empty_str(string: &NonEmptyStr) -> Result<Self, Self::Error>;
}Expand description
Parsing values from non-empty strings.
Required Associated Types§
Required Methods§
Sourcefn from_non_empty_str(string: &NonEmptyStr) -> Result<Self, Self::Error>
fn from_non_empty_str(string: &NonEmptyStr) -> Result<Self, Self::Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
Source§impl FromNonEmptyStr for NonEmptyString
Available on crate features alloc or std only.
impl FromNonEmptyStr for NonEmptyString
Available on crate features
alloc or std only.