computer: lazy part 4

This commit is contained in:
nym21
2025-05-03 17:28:48 +02:00
parent efa7294f59
commit 320c708e10
32 changed files with 326 additions and 127 deletions

View File

@@ -5,7 +5,7 @@
use brk_computer::Computer;
use brk_indexer::Indexer;
use brk_vec::AnyStoredVec;
use brk_vec::AnyVec;
use tabled::settings::Style;
mod format;
@@ -51,7 +51,7 @@ impl<'a> Query<'a> {
}
}
pub fn search(&self, index: Index, ids: &[&str]) -> Vec<(String, &&dyn AnyStoredVec)> {
pub fn search(&self, index: Index, ids: &[&str]) -> Vec<(String, &&dyn AnyVec)> {
let tuples = ids
.iter()
.flat_map(|s| {
@@ -86,7 +86,7 @@ impl<'a> Query<'a> {
pub fn format(
&self,
vecs: Vec<(String, &&dyn AnyStoredVec)>,
vecs: Vec<(String, &&dyn AnyVec)>,
from: Option<i64>,
to: Option<i64>,
format: Option<Format>,