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]])
| 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 { |
no outgoing calls
no test coverage detected