Skip to main content

RadixKey

Trait RadixKey 

Source
pub trait RadixKey:
    Copy
    + Send
    + Sync
    + Ord
    + Default
    + Not<Output = Self> {
    const BYTES: usize;

    // Required methods
    fn byte(self, b: usize) -> usize;
    fn word(self) -> u64;
    fn extremes(x: &[Self]) -> (Self, Self);
}
Expand description

An unsigned key that sort_rows sorts one byte at a time.

Required Associated Constants§

Required Methods§

Source

fn byte(self, b: usize) -> usize

Source

fn word(self) -> u64

The key as a number.

Source

fn extremes(x: &[Self]) -> (Self, Self)

The least and the greatest key of x, through crate::reduce::extremes.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl RadixKey for u8

Source§

const BYTES: usize

Source§

fn byte(self, b: usize) -> usize

Source§

fn word(self) -> u64

Source§

fn extremes(x: &[Self]) -> (Self, Self)

Source§

impl RadixKey for u16

Source§

const BYTES: usize

Source§

fn byte(self, b: usize) -> usize

Source§

fn word(self) -> u64

Source§

fn extremes(x: &[Self]) -> (Self, Self)

Source§

impl RadixKey for u32

Source§

const BYTES: usize

Source§

fn byte(self, b: usize) -> usize

Source§

fn word(self) -> u64

Source§

fn extremes(x: &[Self]) -> (Self, Self)

Source§

impl RadixKey for u64

Source§

const BYTES: usize

Source§

fn byte(self, b: usize) -> usize

Source§

fn word(self) -> u64

Source§

fn extremes(x: &[Self]) -> (Self, Self)

Implementors§