Build a prefilter that admits lines containing *any* of `markers`.
(markers: &[&[u8]])
| 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 |
no outgoing calls
no test coverage detected