You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: matcher.rs
    path of file: ./repos/noseyparker/crates/noseyparker/src
    
    the code of the file until where you have to start completion: use anyhow::Result;
use std::sync::Mutex;
use tracing::error;

use noseyparker_rules::Rule;

use crate::blob::Blob;
use crate::blob_id_map::BlobIdMap;
use crate::location::OffsetSpan;
use crate::matcher_stats::MatcherStats;
use crate::provenance_set::ProvenanceSet;
use crate::rules_database::RulesDatabase;

// -------------------------------------------------------------------------------------------------
// RawMatch
// ------------------------------------------------------------------------------
    
    fn scan_bytes_raw(&mut self, input: &[u8]) -> Result<()> {
        self.user_data.raw_matches_scratch.clear();
        self.user_data.input_len = input.len().try_into().unwrap();
        self.vs_scanner
            .scan(input, |rule_id: u32, from: u64, to: u64, _flags: u32| {
                // let start_idx = if from == vectorscan_sys::HS_OFFSET_PAST_HORIZON { 0 } else { from };
                //
                // NOTE: `from` is only going to be meaningful here if we start compiling rules
                // with the HS_SOM_LEFTMOST flag. But it doesn't seem to hurt to use the 0-value
                // provided when that flag is not used.
                let start_idx = from.min(self.user_data.input_len);
                self.user_data.raw_matches_scratch.push(RawMatch {
                    rule_id,
                    start_idx,
                    end_idx: to,
                });
                vectorscan::Scan::Continue
            })?;
        Ok(())
    }