Trait RedbKey

Source
pub trait RedbKey: RedbValue {
    // Required method
    fn compare(data1: &[u8], data2: &[u8]) -> Ordering;
}

Required Methods§

Source

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Compare data1 with data2

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RedbKey for &str

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl RedbKey for &[u8]

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl RedbKey for bool

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl RedbKey for char

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl RedbKey for i8

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl RedbKey for i16

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl RedbKey for i32

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl RedbKey for i64

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl RedbKey for i128

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl RedbKey for u8

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl RedbKey for u16

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl RedbKey for u32

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl RedbKey for u64

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl RedbKey for u128

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl RedbKey for ()

Source§

fn compare(_data1: &[u8], _data2: &[u8]) -> Ordering

Source§

impl<T0: RedbKey, T1: RedbKey> RedbKey for (T0, T1)

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl<T0: RedbKey, T1: RedbKey, T2: RedbKey> RedbKey for (T0, T1, T2)

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl<T0: RedbKey, T1: RedbKey, T2: RedbKey, T3: RedbKey> RedbKey for (T0, T1, T2, T3)

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl<T0: RedbKey, T1: RedbKey, T2: RedbKey, T3: RedbKey, T4: RedbKey> RedbKey for (T0, T1, T2, T3, T4)

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl<T0: RedbKey, T1: RedbKey, T2: RedbKey, T3: RedbKey, T4: RedbKey, T5: RedbKey> RedbKey for (T0, T1, T2, T3, T4, T5)

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl<T0: RedbKey, T1: RedbKey, T2: RedbKey, T3: RedbKey, T4: RedbKey, T5: RedbKey, T6: RedbKey> RedbKey for (T0, T1, T2, T3, T4, T5, T6)

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl<T0: RedbKey, T1: RedbKey, T2: RedbKey, T3: RedbKey, T4: RedbKey, T5: RedbKey, T6: RedbKey, T7: RedbKey> RedbKey for (T0, T1, T2, T3, T4, T5, T6, T7)

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl<T0: RedbKey, T1: RedbKey, T2: RedbKey, T3: RedbKey, T4: RedbKey, T5: RedbKey, T6: RedbKey, T7: RedbKey, T8: RedbKey> RedbKey for (T0, T1, T2, T3, T4, T5, T6, T7, T8)

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl<T0: RedbKey, T1: RedbKey, T2: RedbKey, T3: RedbKey, T4: RedbKey, T5: RedbKey, T6: RedbKey, T7: RedbKey, T8: RedbKey, T9: RedbKey> RedbKey for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl<T0: RedbKey, T1: RedbKey, T2: RedbKey, T3: RedbKey, T4: RedbKey, T5: RedbKey, T6: RedbKey, T7: RedbKey, T8: RedbKey, T9: RedbKey, T10: RedbKey> RedbKey for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl<T0: RedbKey, T1: RedbKey, T2: RedbKey, T3: RedbKey, T4: RedbKey, T5: RedbKey, T6: RedbKey, T7: RedbKey, T8: RedbKey, T9: RedbKey, T10: RedbKey, T11: RedbKey> RedbKey for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl<T: RedbKey> RedbKey for Option<T>

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Source§

impl<const N: usize> RedbKey for &[u8; N]

Source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Implementors§