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", so this trait is not object safe.
Implementors§
Source§impl FromNonEmptyStr for NonEmptyString
Available on crate features std or alloc only.
impl FromNonEmptyStr for NonEmptyString
Available on crate features
std or alloc only.