IEntry

Trait IEntry 

Source
pub trait IEntry<T, Extractor, S, Borrower = DefaultBorrower>
where Extractor: for<'a> KeyExtractor<'a, T>, for<'a> <Extractor as KeyExtractor<'a, T>>::Key: Hash, S: BuildHasher,
{ // Required method fn entry<'a, K>(&'a mut self, key: K) -> Entry<'a, T, Extractor, K, S> where Borrower: IBorrower<K>, <Borrower as IBorrower<K>>::Borrowed: Hash, for<'z> <Extractor as KeyExtractor<'z, T>>::Key: Hash + PartialEq<<Borrower as IBorrower<K>>::Borrowed>; }
Expand description

The trait magic that allows KeyedSet::entry to work.

Required Methods§

Source

fn entry<'a, K>(&'a mut self, key: K) -> Entry<'a, T, Extractor, K, S>
where Borrower: IBorrower<K>, <Borrower as IBorrower<K>>::Borrowed: Hash, for<'z> <Extractor as KeyExtractor<'z, T>>::Key: Hash + PartialEq<<Borrower as IBorrower<K>>::Borrowed>,

Access the entry for key.

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<T, Extractor, S, Borrower> IEntry<T, Extractor, S, Borrower> for KeyedSet<T, Extractor, S>
where Extractor: for<'a> KeyExtractor<'a, T>, for<'a> <Extractor as KeyExtractor<'a, T>>::Key: Hash, S: BuildHasher,