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

Method find_hash

perro_source/core/perro_csv/src/lib.rs:181–188  ·  view source on GitHub ↗
(&self, col: usize, key_hash: u64)

Source from the content-addressed store, hash-verified

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 }
183
184 #[inline]
185 pub fn get(&self, row: usize, col: usize) -> Option<&'static str> {
186 self.rows.get(row).and_then(|row| row.get(col))
187 }
188
189 #[inline]
190 pub fn get_by_header(&self, row: usize, header: &str) -> Option<&'static str> {
191 let col = self.header_index(header)?;

Callers 1

findMethod · 0.80

Calls 5

find_primary_hashMethod · 0.80
findMethod · 0.80
is_emptyMethod · 0.45
iterMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected