nom

Trait FindSubstring

Source
pub trait FindSubstring<T> {
    // Required method
    fn find_substring(&self, substr: T) -> Option<usize>;
}
Expand description

Look for a substring in self

Required Methods§

Source

fn find_substring(&self, substr: T) -> Option<usize>

Returns the byte position of the substring if it is found

Implementations on Foreign Types§

Source§

impl<'a, 'b> FindSubstring<&'b str> for &'a str

Source§

fn find_substring(&self, substr: &'b str) -> Option<usize>

Source§

impl<'a, 'b> FindSubstring<&'b str> for &'a [u8]

Source§

fn find_substring(&self, substr: &'b str) -> Option<usize>

Source§

impl<'a, 'b> FindSubstring<&'b [u8]> for &'a [u8]

Source§

fn find_substring(&self, substr: &'b [u8]) -> Option<usize>

Implementors§