Skip to main content

Hashable

Trait Hashable 

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

Trait for types that can be hashed

Required Methods§

Source

fn hash(&self) -> Hash

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§