[][src]Trait rustc_data_structures::interner::HashInterner

pub trait HashInterner<K: Eq + Hash> {
    fn intern_ref<Q: ?Sized, F: FnOnce() -> K>(
        &mut self,
        value: &Q,
        make: F
    ) -> K
    where
        K: Borrow<Q>,
        Q: Hash + Eq
;
fn intern<Q, F: FnOnce(Q) -> K>(&mut self, value: Q, make: F) -> K
    where
        K: Borrow<Q>,
        Q: Hash + Eq
; }

Required methods

fn intern_ref<Q: ?Sized, F: FnOnce() -> K>(&mut self, value: &Q, make: F) -> K where
    K: Borrow<Q>,
    Q: Hash + Eq

fn intern<Q, F: FnOnce(Q) -> K>(&mut self, value: Q, make: F) -> K where
    K: Borrow<Q>,
    Q: Hash + Eq

Loading content...

Implementations on Foreign Types

impl<K: Eq + Hash + Copy, S: BuildHasher> HashInterner<K> for HashMap<K, (), S>[src]

Loading content...

Implementors

Loading content...