Skip to main content

KeyRangeCodec

Trait KeyRangeCodec 

Source
pub trait KeyRangeCodec {
    const TAG: KeyTag;

    // Required methods
    fn start(&self) -> Option<EncodedKey>;
    fn end(&self) -> Option<EncodedKey>;
    fn decode(range: &EncodedKeyRange) -> (Option<Self>, Option<Self>)
       where Self: Sized;
}

Required Associated Constants§

Required Methods§

Source

fn start(&self) -> Option<EncodedKey>

Source

fn end(&self) -> Option<EncodedKey>

Source

fn decode(range: &EncodedKeyRange) -> (Option<Self>, Option<Self>)
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl KeyRangeCodec for DictionaryEntryIndexKeyRange

Source§

const TAG: KeyTag = KeyTag::DictionaryEntryIndex

Source§

impl KeyRangeCodec for IndexEntryKeyRange

Source§

const TAG: KeyTag = KeyTag::IndexEntry

Source§

impl KeyRangeCodec for ObjectIndexKeyRange

Source§

const TAG: KeyTag = KeyTag::Index

Source§

impl KeyRangeCodec for PartitionedRowKeyRange

Source§

const TAG: KeyTag = KeyTag::PartitionedRow

Source§

impl KeyRangeCodec for RowKeyRange

Source§

const TAG: KeyTag = KeyTag::Row