Struct non_empty_string::NonEmptyString [−][src]
pub struct NonEmptyString(_);
Expand description
A simple String wrapper type, similar to NonZeroUsize and friends. Guarantees that the String contained inside is not of length 0.
Implementations
Attempts to create a new NonEmptyString.
If the given string
is empty, None
is returned, Some
otherwise.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NonEmptyString
impl Send for NonEmptyString
impl Sync for NonEmptyString
impl Unpin for NonEmptyString
impl UnwindSafe for NonEmptyString
Blanket Implementations
Mutably borrows from an owned value. Read more