Trait ExtractShardKey
sharded
pub trait ExtractShardKey<K: Hash> { fn key(&self) -> &K; }
Teases out the sharding key for example from an IntoIterator value.
fn key(&self) -> &K
impl<K: Hash, V> ExtractShardKey<K> for (K, V)
impl<K: Hash> ExtractShardKey<K> for K