Trait radsort::Key

source ·
pub trait Key: Copy + Sealed { }
Expand description

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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Key for bool

source§

impl Key for char

source§

impl Key for f32

source§

impl Key for f64

source§

impl Key for i8

source§

impl Key for i16

source§

impl Key for i32

source§

impl Key for i64

source§

impl Key for i128

source§

impl Key for isize

source§

impl Key for u8

source§

impl Key for u16

source§

impl Key for u32

source§

impl Key for u64

source§

impl Key for u128

source§

impl Key for usize

source§

impl<A: Key> Key for (A,)

source§

impl<A: Key, B: Key> Key for (A, B)

source§

impl<A: Key, B: Key, C: Key> Key for (A, B, C)

source§

impl<A: Key, B: Key, C: Key, D: Key> Key for (A, B, C, D)

Implementors§