pub trait Key: Copy + Sealed { }
Types which can be used as sorting keys.
Implemented for all scalar types and their tuples.
Slices of types for which Key
is implemented can be sorted directly using
sort
. Slices of other types can be sorted using sort_by_key
with a
key extraction function.
impl Key for bool
[src]
impl Key for char
[src]
impl Key for f32
[src]
impl Key for f64
[src]
impl Key for i8
[src]
impl Key for i16
[src]
impl Key for i32
[src]
impl Key for i64
[src]
impl Key for i128
[src]
impl Key for isize
[src]
impl Key for u8
[src]
impl Key for u16
[src]
impl Key for u32
[src]
impl Key for u64
[src]
impl Key for u128
[src]
impl Key for usize
[src]
impl<A: Key> Key for (A,)
[src]
impl<A: Key, B: Key> Key for (A, B)
[src]
impl<A: Key, B: Key, C: Key> Key for (A, B, C)
[src]
impl<A: Key, B: Key, C: Key, D: Key> Key for (A, B, C, D)
[src]
Loading content...