pub trait BinarySearchKey: 'static {
type Type: Ord + Copy + 'static;
// Required methods
fn cmp(k: Self::Type, id: DataIdentifierBorrowed<'_>) -> Ordering;
fn to_id(k: Self::Type) -> DataIdentifierCow<'static>;
}
Required Associated Types§
Required Methods§
fn cmp(k: Self::Type, id: DataIdentifierBorrowed<'_>) -> Ordering
fn to_id(k: Self::Type) -> DataIdentifierCow<'static>
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.