into_sorted/lib.rs
1//! Collection of utility methods and functions that take an owned array and return a sorted owned array.
2//!
3//! **Features:**
4//! * `alloc`: Provides stable sorting functions and methods which require allocations. This feature is enabled by default.
5
6#![no_std]
7
8#[cfg(feature = "alloc")]
9mod stable;
10#[cfg(feature = "alloc")]
11pub use stable::*;
12
13mod unstable;
14pub use unstable::*;
15
16pub mod prelude {
17 #[cfg(feature = "alloc")]
18 pub use crate::IntoSorted;
19
20 pub use crate::IntoSortedUnstable;
21}
22
23mod sealed {
24 pub trait IsArray<Item>: Sized {}
25 impl<Item, Array> IsArray<Item> for Array where Array: AsMut<[Item]> + Sized {}
26}