fn needles(&self, count: usize) -> Option<Vec<u8>> {
        if self.needles.len() > count {
            return None;
        }

        let mut needles = self.needles.to_vec();
        for _ in needles.len()..count {
            // we assume # is never used in tests.
            needles.push(b'#');
        }
        Some(needles)
    }
/// Return exactly `count` needles from this test. If this test has less
/// than `count` needles, then add `#` until the number of needles
/// matches `count`. If this test has more than `count` needles, then
/// return `None` (because there is no way to use this test data for a
/// search using fewer needles).
Return exactly `count` needles from this test.
Return exactly ` count ` needles from this test .
fn needles(&self, count: usize) -> Option<Vec<u8>> {
        if self.needles.len() > count {
            return None;
        }
        let mut needles = self.needles.to_vec();
        for _ in needles.len()..count {
            // we assume # is never used in tests.
            needles.push(b'#');
        }
        Some(needles)
    }
fn needles ( & self , count : usize ) -> Option < Vec < u8 > > { if self . needles . len ( ) > count { return None ; } let mut needles = self . needles . to_vec ( ) ; for _ in needles . len ( ) .. count { // we assume # is never used in tests. needles . push ( b'#' ) ; } Some ( needles ) }
Return exactly `count` needles from this test.
Return exactly ` count ` needles from this test .
&self
count
usize
&self
count
usize