Crate non_empty_string

Source
Expand description

§NonEmptyString

A simple wrapper type for Strings that ensures that the string inside is not .empty(), meaning that the length > 0.

Macros§

non_empty_string
Creates a NonEmptyString from a string literal at compile time.

Structs§

NonEmptyString
A simple String wrapper type, similar to NonZeroUsize and friends. Guarantees that the String contained inside is not of length 0.