FxIndexSet

Type Alias FxIndexSet 

Source
pub type FxIndexSet<K> = IndexSet<K, BuildHasherDefault<FxHasher>>;

Aliased Type§

pub struct FxIndexSet<K> { /* private fields */ }

Trait Implementations§

Source§

impl<T: Item> Dedup<T> for FxIndexSet<T>

Source§

fn checked_dedup(&mut self, item: T) -> Result<<T as Item>::Id>

In incident 35390 (JIRA PROF-11456) we observed invalid location_ids being present in emitted profiles. It’s not likely that the incorrect ids are coming from the underlying collection, but we’re doing extra checks here so that if we see incorrect ids again, we are 100% sure they were not introduced at this stage.

Source§

fn dedup(&mut self, item: T) -> <T as Item>::Id

Deduplicate the Item and return its associated Id. Read more
Source§

fn try_dedup(&mut self, item: T) -> Result<<T as Item>::Id>