ValueWithSubKey

Trait ValueWithSubKey 

Source
pub trait ValueWithSubKey {
    type SubKey;

    // Required method
    fn get_subkey(&self) -> Self::SubKey;
}
Expand description

Trait for DupSort table values that contain a subkey.

This trait allows extracting the subkey from a value during database iteration, enabling proper range queries and filtering on DupSort tables.

Required Associated Types§

Source

type SubKey

The type of the subkey.

Required Methods§

Source

fn get_subkey(&self) -> Self::SubKey

Extract the subkey from the value.

Implementors§