pub trait Encode {
// Required method
fn encode_unchecked(&self, row: Row) -> Vec<u8> ⓘ;
// Provided method
fn hash(&self, buf: &[u8]) -> u64 { ... }
}Required Methods§
Provided Methods§
Sourcefn hash(&self, buf: &[u8]) -> u64
fn hash(&self, buf: &[u8]) -> u64
Given the output of a call to Encode::encode_unchecked, returns
a hash that is suitable for stable partitioning.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".