pub(crate) fn new(
            ninfo: &NeedleInfo,
            needle: &[u8],
        ) -> Option<Forward> {
            if !cfg!(memchr_runtime_avx) || !is_x86_feature_detected!("avx2") {
                return None;
            }
            genericsimd::Forward::new(ninfo, needle).map(Forward)
        }
/// Create a new "generic simd" forward searcher. If one could not be
/// created from the given inputs, then None is returned.
Create a new "generic simd" forward searcher. If one could not be
created from the given inputs, then None is returned.
Create a new " generic simd " forward searcher . If one could not be created from the given inputs then None is returned .
pub(crate) fn new(
            ninfo: &NeedleInfo,
            needle: &[u8],
        ) -> Option<Forward> {
            if !cfg!(memchr_runtime_avx) || !is_x86_feature_detected!("avx2") {
                return None;
            }
            genericsimd::Forward::new(ninfo, needle).map(Forward)
        }
pub ( crate ) fn new ( ninfo : & NeedleInfo , needle : & [ u8 ] , ) -> Option < Forward > { if ! cfg ! ( memchr_runtime_avx ) || ! is_x86_feature_detected ! ( " " ) { return None ; } genericsimd :: Forward :: new ( ninfo , needle ) . map ( Forward ) }
Create a new "generic simd" forward searcher.
Create a new " generic simd " forward searcher .
ninfo
&NeedleInfo
needle
&[u8]
ninfo
&NeedleInfo
needle
&[u8]