icu_provider_baked::binary_search

Trait BinarySearchKey

Source
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§

Source

type Type: Ord + Copy + 'static

Required Methods§

Source

fn cmp(k: Self::Type, id: DataIdentifierBorrowed<'_>) -> Ordering

Source

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.

Implementors§