pub unsafe fn new(needle: N) -> Self {
        // Wrapping prevents panicking on unsigned integer underflow when
        // `needle` is empty.
        let position = needle.size().wrapping_sub(1);
        Self::with_position(needle, position)
    }
/// Creates a new searcher for `needle`. By default, `position` is set to
/// the last character in the needle.
///
/// # Panics
///
/// Panics if `needle` is empty or if the associated `SIZE` constant does
/// not correspond to the actual size of `needle`.
Creates a new searcher for `needle`. By default, `position` is set to
the last character in the needle.
Creates a new searcher for ` needle ` . By default ` position ` is set to the last character in the needle .
pub unsafe fn new(needle: N) -> Self {
        // Wrapping prevents panicking on unsigned integer underflow when
        // `needle` is empty.
        let position = needle.size().wrapping_sub(1);
        Self::with_position(needle, position)
    }
pub unsafe fn new ( needle : N ) -> Self { // Wrapping prevents panicking on unsigned integer underflow when // `needle` is empty. let position = needle . size ( ) . wrapping_sub ( 1 ) ; Self :: with_position ( needle , position ) }
Creates a new searcher for `needle`.
Creates a new searcher for ` needle ` .
needle
N
needle
N
panics
Panics if `needle` is empty or if the associated `SIZE` constant does
not correspond to the actual size of `needle`.
Panics if ` needle ` is empty or if the associated ` SIZE ` constant does not correspond to the actual size of ` needle ` .