Trait DupSort

pub trait DupSort: Table {
    type SubKey: Key;
}
Available on crate feature provider only.
Expand description

DupSort allows for keys to be repeated in the database.

Upstream docs: https://libmdbx.dqdkfa.ru/usage.html#autotoc_md48

Required Associated Types§

type SubKey: Key

The table subkey. This type must implement Encode and Decode.

Sorting should be taken into account when encoding this.

Upstream docs: https://libmdbx.dqdkfa.ru/usage.html#autotoc_md48

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.

Implementors§

§

impl DupSort for AccountChangeSets

§

type SubKey = Address

§

impl DupSort for HashedStorages

§

type SubKey = FixedBytes<32>

§

impl DupSort for PlainStorageState

§

type SubKey = FixedBytes<32>

§

impl DupSort for StorageChangeSets

§

type SubKey = FixedBytes<32>

§

impl DupSort for StoragesTrie

§

impl<T> DupSort for RawDupSort<T>
where T: DupSort,

§

type SubKey = RawKey<<T as DupSort>::SubKey>