pub trait Clear {
const CLEAR_HASH: Self;
// Required method
fn is_clear(&self) -> bool;
}
Expand description
The equivalent of Zero
for hashes.
A hash that consists only of 0 bits is clear.
Required Associated Constants§
Sourceconst CLEAR_HASH: Self
const CLEAR_HASH: Self
The clear hash.
Required 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.