pub trait SwhidMphf {
// Required methods
fn hash_str(&self, swhid: impl AsRef<str>) -> Option<NodeId>;
fn hash_str_array(&self, swhid: &[u8; 50]) -> Option<NodeId>;
// Provided methods
fn hash_array(&self, swhid: &[u8; 22]) -> Option<NodeId> { ... }
fn hash_swhid(&self, swhid: &SWHID) -> Option<NodeId> { ... }
}
Expand description
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.