MCPcopy Create free account
hub / github.com/ccusage/ccusage / any

Method any

rust/crates/ccusage/src/fast.rs:44–46  ·  view source on GitHub ↗

Build a prefilter that admits lines containing *any* of `markers`.

(markers: &[&[u8]])

Source from the content-addressed store, hash-verified

42
43 /// Build a prefilter that admits lines containing *any* of `markers`.
44 pub(crate) fn any(markers: &[&[u8]]) -> Self {
45 Self::new(markers, PrefilterMode::Any)
46 }
47
48 fn new(markers: &[&[u8]], mode: PrefilterMode) -> Self {
49 // `Finder::new` borrows the needle, so take an owned copy to outlive the

Callers 9

parse_models_dev_jsonFunction · 0.80
contains_pricing_keyFunction · 0.80
matchesMethod · 0.80
contains_keyFunction · 0.80
print_usage_tableFunction · 0.80
run_dailyFunction · 0.80
control_argFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected