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