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

Method all

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

Build a prefilter that only admits lines containing *all* `markers`. # Example ```ignore let prefilter = LinePrefilter::all(&[b"\"usage\"", b"\"message\""]); assert!(prefilter.matches(br#"{"message":{"usage":{}}}"#)); assert!(!prefilter.matches(br#"{"message":{}}"#)); ```

(markers: &[&[u8]])

Source from the content-addressed store, hash-verified

37 /// assert!(!prefilter.matches(br#"{"message":{}}"#));
38 /// ```
39 pub(crate) fn all(markers: &[&[u8]]) -> Self {
40 Self::new(markers, PrefilterMode::All)
41 }
42
43 /// Build a prefilter that admits lines containing *any* of `markers`.
44 pub(crate) fn any(markers: &[&[u8]]) -> Self {

Callers 9

parse_models_dev_jsonFunction · 0.80
matchesMethod · 0.80
parse_project_nameFunction · 0.80
is_channel_db_nameFunction · 0.80
codex_timestamp_dateFunction · 0.80
find_help_pageFunction · 0.80
compact_date_cellFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected