Skip to main content

Searchable

Trait Searchable 

Source
pub trait Searchable: MapStore {
    // Required method
    fn search<Q>(query: &Q) -> Option<usize>
       where Q: Comparable<Self::Key> + ?Sized;
}

Required Methods§

Source

fn search<Q>(query: &Q) -> Option<usize>
where Q: Comparable<Self::Key> + ?Sized,

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<K, V> Searchable for (K, V)
where K: Searchable + AccessSeq + MapStore<Key = K::Item>, V: AccessSeq,

Source§

fn search<Q>(query: &Q) -> Option<usize>
where Q: Comparable<K::Item> + ?Sized,

Implementors§