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§
fn hash(&self, value: &str) -> Result<String>
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".