Trait redb::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

Object Safety§

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§