Skip to main content

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"))]
5mod std_or_alloc {
6    use ownership::impl_identity;
7
8    use crate::{boxed::NonEmptyBoxedStr, string::NonEmptyString};
9
10    impl_identity!(NonEmptyBoxedStr);
11    impl_identity!(NonEmptyString);
12}