fn new(pattern: &[u8]) -> Self {
        let pattern = pattern.iter();
        let m = pattern.len();
        assert!(m <= 63, "Expecting a pattern of at most 63 symbols.");
        // take the reverse pattern and build nondeterministic
        // suffix automaton
        let (masks, accept) = masks(pattern.rev().cloned());

        BNDM { m, masks, accept }
    }
/// Create a new instance for a given pattern.
Create a new instance for a given pattern.
Create a new instance for a given pattern .
fn new(pattern: &[u8]) -> Self {
        let pattern = pattern.iter();
        let m = pattern.len();
        assert!(m <= 63, "Expecting a pattern of at most 63 symbols.");
        // take the reverse pattern and build nondeterministic
        // suffix automaton
        let (masks, accept) = masks(pattern.rev().cloned());
        BNDM { m, masks, accept }
    }
fn new ( pattern : & [ u8 ] ) -> Self { let pattern = pattern . iter ( ) ; let m = pattern . len ( ) ; assert ! ( m 63 " " ) ; // take the reverse pattern and build nondeterministic // suffix automaton let ( masks , accept ) = masks ( pattern . rev ( ) . cloned ( ) ) ; BNDM { m , masks , accept } }
Create a new instance for a given pattern.
Create a new instance for a given pattern .
pattern
&[u8]
pattern
&[u8]