Skip to main content

GetHash

Trait GetHash 

Source
pub trait GetHash {
    // Required method
    fn get_hash(&self) -> u64;
}
Expand description

Returns a deterministic 64-bit hash for content-based deduplication.

Required Methods§

Source

fn get_hash(&self) -> u64

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Hash> GetHash for T