pub trait MajorityKey: Copy + Default {
// Required method
fn key_eq(self, other: Self) -> bool;
}Expand description
A fixed-width value that a majority vote compares for equality.
The comparison must be an equivalence relation. Floats compare by bit pattern, as in
NativePType::is_eq, so every NaN payload is its own value and -0.0 differs from 0.0.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<const N: usize> MajorityKey for [u8; N]
Fixed-size byte strings, such as UUIDs or the 16-byte views of variable-length strings.
impl<const N: usize> MajorityKey for [u8; N]
Fixed-size byte strings, such as UUIDs or the 16-byte views of variable-length strings.