redb

Trait Key

Source
pub trait Key: Value {
    // 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 Key for &str

Source§

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

Source§

impl Key for &[u8]

Source§

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

Source§

impl Key for bool

Source§

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

Source§

impl Key for char

Source§

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

Source§

impl Key for i8

Source§

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

Source§

impl Key for i16

Source§

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

Source§

impl Key for i32

Source§

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

Source§

impl Key for i64

Source§

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

Source§

impl Key for i128

Source§

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

Source§

impl Key for u8

Source§

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

Source§

impl Key for u16

Source§

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

Source§

impl Key for u32

Source§

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

Source§

impl Key for u64

Source§

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

Source§

impl Key for u128

Source§

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

Source§

impl Key for ()

Source§

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

Source§

impl Key for String

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<T: Key> Key for Option<T>

Source§

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

Source§

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

Source§

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

Source§

impl<const N: usize, T: Key> Key for [T; N]

Source§

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

Implementors§