Skip to main content

ComputedHash

Trait ComputedHash 

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

Trait to implement for typed that contain a pre-computed hash value.

Required Methods§

Source

fn computed_hash(&self) -> u64

Return computed hash value.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T> ComputedHash for Hashed<T>
where T: Hash,