[][src]Trait sharded::ExtractShardKey

pub trait ExtractShardKey<K: Hash> {
    fn key(&self) -> &K;
}

Teases out the sharding key for example from an IntoIterator value.

Required methods

fn key(&self) -> &K

Loading content...

Implementations on Foreign Types

impl<K: Hash, V> ExtractShardKey<K> for (K, V)[src]

Loading content...

Implementors

impl<K: Hash> ExtractShardKey<K> for K[src]

Loading content...