non_empty_slice/lib.rs
1//! Non-empty slices.
2
3#![cfg_attr(not(feature = "std"), no_std)]
4#![deny(missing_docs)]
5#![cfg_attr(docsrs, feature(doc_auto_cfg))]
6
7#[cfg(feature = "alloc")]
8extern crate alloc;
9
10#[macro_use]
11pub mod macros;
12
13pub mod slice;
14
15pub use slice::{Bytes, Empty, Slice};
16
17#[cfg(any(feature = "std", feature = "alloc"))]
18pub mod owned;
19
20#[cfg(any(feature = "std", feature = "alloc"))]
21pub use owned::{EmptyOwned, OwnedBytes, OwnedSlice};