non_empty_str/
lib.rs

1//! Non-empty strings.
2
3#![deny(missing_docs)]
4#![cfg_attr(not(feature = "std"), no_std)]
5#![cfg_attr(docsrs, feature(doc_cfg))]
6
7#[cfg(feature = "alloc")]
8extern crate alloc;
9
10#[macro_use]
11pub mod macros;
12
13pub mod str;
14
15pub mod iter;
16
17#[doc(inline)]
18pub use str::{EmptyStr, FromNonEmptyStr, MaybeEmptyUtf8Error, NonEmptyStr, NonEmptyUtf8Error};
19
20#[cfg(any(feature = "std", feature = "alloc"))]
21pub mod string;
22
23#[doc(inline)]
24#[cfg(any(feature = "std", feature = "alloc"))]
25pub use string::{EmptyString, FromMaybeEmptyUtf8Error, FromNonEmptyUtf8Error, NonEmptyString};
26
27#[cfg(any(feature = "std", feature = "alloc"))]
28pub mod boxed;
29
30#[doc(inline)]
31#[cfg(any(feature = "std", feature = "alloc"))]
32pub use boxed::{EmptyBoxedStr, NonEmptyBoxedStr};
33
34#[cfg(any(feature = "std", feature = "alloc"))]
35pub mod cow;
36
37#[doc(inline)]
38#[cfg(any(feature = "std", feature = "alloc"))]
39pub use cow::NonEmptyCowStr;
40
41#[cfg(feature = "ownership")]
42pub(crate) mod ownership;
43
44#[cfg(feature = "serde")]
45pub(crate) mod serde;
46
47pub(crate) mod internal;