Skip to main content

Hashable

Trait Hashable 

Source
pub trait Hashable {
    // Required method
    fn hash(&self) -> Digest;
}
Expand description

Trait for objects that can be hashed.

Required Methods§

Source

fn hash(&self) -> Digest

Hashes the object to a Digest.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§