fn iter<I: Iterator<Item = usize>>(&self, reverse: bool, it: I) {
        assert_eq!(
            self.positions(0, reverse),
            it.collect::<Vec<usize>>(),
            r"search for {:?} failed in: {:?}",
            self.needles.iter().map(|&b| b as char).collect::<Vec<char>>(),
            self.corpus
        );
    }
/// Test that the positions yielded by the given iterator match the
/// positions in this test. If reverse is true, then reverse the positions
/// before comparing them.
Test that the positions yielded by the given iterator match the
positions in this test. If reverse is true, then reverse the positions
before comparing them.
Test that the positions yielded by the given iterator match the positions in this test . If reverse is true then reverse the positions before comparing them .
fn iter<I: Iterator<Item = usize>>(&self, reverse: bool, it: I) {
        assert_eq!(
            self.positions(0, reverse),
            it.collect::<Vec<usize>>(),
            r"search for {:?} failed in: {:?}",
            self.needles.iter().map(|&b| b as char).collect::<Vec<char>>(),
            self.corpus
        );
    }
fn iter < I : Iterator < Item = usize > > ( & self , reverse : bool , it : I ) { assert_eq ! ( self positions ( 0 reverse ) it collect Vec usize ( ) r"search for {:?} failed in: {:?}" self needles iter ( ) map ( b b as char ) collect Vec char ( ) self corpus ) ; }
Test that the positions yielded by the given iterator match the
positions in this test.
Test that the positions yielded by the given iterator match the positions in this test .
&self
reverse
bool
it
I
&self
reverse
bool
it
I