Trait Searchable

Source
pub trait Searchable<'data>: MapStore<'data> {
    // Required method
    fn search<Q>(&self, key: &Q) -> Option<Self::Value>
       where Self::Key: Borrow<Q>,
             Q: Ord + ?Sized;
}

Required Methods§

Source

fn search<Q>(&self, key: &Q) -> Option<Self::Value>
where Self::Key: Borrow<Q>, Q: Ord + ?Sized,

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§

Source§

impl<'data, const N: usize, K, V> Searchable<'data> for Ordered<(List<'data, N, K>, V)>
where K: Copy, V: AccessSeq<'data>,

Source§

impl<'data, const N: usize, T> Searchable<'data> for Ordered<List<'data, N, T>>
where T: Copy,