pub trait Profile: Sealed + 'static {
const ID: ProfileId;
const NAME: &'static str;
}Expand description
Marker implemented by supported, compile-time-separated hash profiles.
The trait is sealed so downstream crates cannot accidentally assign an unsupported hash function to a recognized profile identifier.
Required Associated Constants§
Sourceconst NAME: &'static str
const NAME: &'static str
Canonical profile text used in diagnostics, evidence, and protocols.
Implementations derive this from ProfileId::as_str so the marker
type and runtime identifier cannot acquire different spellings.
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.