[][src]Struct rdx::DefaultStrategy

pub struct DefaultStrategy;

The default radix sort strategy for a type

Trait Implementations

impl Clone for DefaultStrategy[src]

impl Copy for DefaultStrategy[src]

impl Debug for DefaultStrategy[src]

impl<K: RadixSortKey> KeyBytes<K> for DefaultStrategy[src]

const HAS_CONST_KEY_LEN: bool[src]

Get whether the key length for this type is always constant

const MAX_KEY_LEN: Option<usize>[src]

Get the maximum key length for this type

fn has_const_key_len(&self) -> bool[src]

Whether this key length is constant

fn max_key_len(&self) -> Option<usize>[src]

The maximum key length

fn key_len(&self, key: &K) -> usize[src]

The length of a given key

fn key_byte(&self, key: &K, byte: usize) -> u8[src]

Get the nth byte of a given key. byte must be less than self.len(key)

impl<K: RadixSortKey> TrySorter<K> for DefaultStrategy[src]

fn try_sort(
    &mut self,
    arr: &mut [K],
    depth: isize,
    _iteration: usize,
    force: bool
) -> bool
[src]

Try to sort arr, assuming we're at a given depth and iteration. Return whether the array was sorted. If force is true, then should always sort.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, K> RadixSortStrategy<K> for T where
    T: KeyBytes<K> + TrySorter<K>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.