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

Method add_starts_with

perro_source/core/perro_csv/src/lib.rs:708–717  ·  view source on GitHub ↗
(mut self, logic: CsvLogic, col: &str, prefix: &str)

Source from the content-addressed store, hash-verified

706 self
707 }
708
709 pub fn run(&self) -> CSVQueryResult {
710 let mut rows = Vec::<usize>::new();
711 // Direct loops instead of a boxed `dyn Iterator`: avoids a per-run heap
712 // alloc and the vtable `next()` call on every row.
713 match self.candidate_rows() {
714 Some(candidates) => {
715 for row_idx in candidates {
716 if self.matches(row_idx) {
717 rows.push(row_idx);
718 }
719 }
720 }

Callers 2

where_starts_withMethod · 0.80
or_where_starts_withMethod · 0.80

Calls 2

pushMethod · 0.45
colMethod · 0.45

Tested by

no test coverage detected