Struct FinderRev
pub struct FinderRev(/* private field */);
A reverse substring searcher that uses the Two-Way algorithm.
Implementations
impl FinderRev
fn new(needle: &[u8]) -> FinderRevCreate a searcher that finds occurrences of the given
needle.An empty
needleresults in a match at every position in a haystack, including athaystack.len().fn rfind(&self, haystack: &[u8], needle: &[u8]) -> Option<usize>Returns the last occurrence of
needlein the givenhaystack, orNoneif no such occurrence could be found.The
needlegiven must be the same as theneedleprovided toFinderRev::new.An empty
needleresults in a match at every position in a haystack, including athaystack.len().
Trait Implementations
impl Clone for FinderRev
fn clone(&self) -> Self
impl Copy for FinderRev
impl Debug for FinderRev
fn fmt(&self, f: &mut Formatter<'_>) -> Result