non_empty_str/ownership.rs
1#[cfg(not(feature = "ownership"))]
2compile_error!("expected `ownership` to be enabled");
3
4#[cfg(any(feature = "std", feature = "alloc"))]
5use ownership::impl_identity;
6
7#[cfg(any(feature = "std", feature = "alloc"))]
8use crate::{boxed::NonEmptyBoxedStr, string::NonEmptyString};
9
10#[cfg(any(feature = "std", feature = "alloc"))]
11impl_identity!(NonEmptyBoxedStr);
12
13#[cfg(any(feature = "std", feature = "alloc"))]
14impl_identity!(NonEmptyString);