MCPcopy Create free account
hub / github.com/PerroEngine/Perro / find_primary

Method find_primary

perro_source/core/perro_csv/src/lib.rs:177–179  ·  view source on GitHub ↗
(&self, key: &str)

Source from the content-addressed store, hash-verified

175 /// Returns the first header with `name_hash`.
176 ///
177 /// Hash-only lookups cannot distinguish collisions. Use [`Self::header_index`] when the
178 /// original header text is available.
179 #[inline]
180 pub fn header_index_hash(&self, name_hash: u64) -> Option<usize> {
181 self.headers.iter().position(|cell| cell.hash == name_hash)
182 }

Callers 1

huge_csv_benchFunction · 0.80

Calls 2

string_to_u64Function · 0.85
find_primary_hashMethod · 0.80

Tested by

no test coverage detected