/// Create new ShiftAnd instance from a given pattern.
Create new ShiftAnd instance from a given pattern.
Create new ShiftAnd instance from a given pattern .
pub fn new<C, P>(pattern: P) -> Self
    where
        P::IntoIter: ExactSizeIterator,
        C: Borrow<u8>,
        P: IntoIterator<Item = C>,
    {
        let pattern = pattern.into_iter();
        let m = pattern.len();
        assert!(m <= 64, "Expecting a pattern of at most 64 symbols.");
        let (masks, accept) = masks(pattern);
        ShiftAnd { m, masks, accept }
    }
pub fn new < C , P > ( pattern : P ) -> Self where P :: IntoIter : ExactSizeIterator , C : Borrow < u8 > , P : IntoIterator < Item = C > , { let pattern = pattern . into_iter ( ) ; let m = pattern . len ( ) ; assert ! ( m 64 " " ) ; let ( masks , accept ) = masks ( pattern ) ; ShiftAnd { m , masks , accept } }
Create new ShiftAnd instance from a given pattern.
Create new ShiftAnd instance from a given pattern .
pattern
P