[][src]Trait nom::FindSubstring

pub trait FindSubstring<T> {
    fn find_substring(&self, substr: T) -> Option<usize>;
}

look for a substring in self

Required methods

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

returns the byte position of the substring if it is found

Loading content...

Implementations on Foreign Types

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

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

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

Loading content...

Implementors

Loading content...