Crate non_empty_str

Crate non_empty_str 

Source
Expand description

Non-empty strings.

Modules§

boxedstd or alloc
Non-empty Box<str>.
cowstd or alloc
Non-empty Cow<'_, str>.
iter
Various iterators over non-empty strings.
macros
Macros for creating non-empty strings.
str
Non-empty str.
stringstd or alloc
Non-empty String.

Macros§

const_non_empty_str
Similar to non_empty_str! but for const contexts.
non_empty_str
Constructs NonEmptyStr from the given string, panicking if the it is empty.

Structs§

EmptyBoxedStrstd or alloc
Similar to EmptyString, but contains the empty boxed string provided.
EmptyStr
Represents errors returned when received strings are empty.
EmptyStringstd or alloc
Similar to EmptyStr, but holds the empty string provided.
FromNonEmptyUtf8Errorstd or alloc
Couples NonEmptyUtf8Error with the NonEmptyByteVec that is invalid UTF-8.
NonEmptyStr
Represents non-empty str values.
NonEmptyStringstd or alloc
Represents non-empty String values.
NonEmptyUtf8Error
Represents errors returned when the received non-empty bytes are not valid UTF-8.

Enums§

FromMaybeEmptyUtf8Errorstd or alloc
Represents errors returned when the provided byte vector is empty or invalid UTF-8.
MaybeEmptyUtf8Error
Represents errors returned when the received bytes are either empty or not valid UTF-8.

Traits§

FromNonEmptyStr
Parsing values from non-empty strings.

Type Aliases§

NonEmptyBoxedStrstd or alloc
Represents non-empty boxed strings, Box<NonEmptyStr>.
NonEmptyCowStrstd or alloc
Represents non-empty clone-on-write strings, Cow<'_, NonEmptyStr>.