Skip to main content

Hashable

Trait Hashable 

Source
pub trait Hashable: Send + Sync {
    // Required methods
    fn hash(&self, value: &str) -> Result<String>;
    fn verify(&self, a: &str, b: &str) -> Result<bool>;
}

Required Methods§

Source

fn hash(&self, value: &str) -> Result<String>

Source

fn verify(&self, a: &str, b: &str) -> Result<bool>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§