non-empty-str 0.11.3

Non-empty strings.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[cfg(not(feature = "ownership"))]
compile_error!("expected `ownership` to be enabled");

#[cfg(any(feature = "std", feature = "alloc"))]
use ownership::impl_identity;

#[cfg(any(feature = "std", feature = "alloc"))]
use crate::{boxed::NonEmptyBoxedStr, string::NonEmptyString};

#[cfg(any(feature = "std", feature = "alloc"))]
impl_identity!(NonEmptyBoxedStr);

#[cfg(any(feature = "std", feature = "alloc"))]
impl_identity!(NonEmptyString);