Trait nom::FindSubstring [−][src]
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>
[src]
returns the byte position of the substring if it is found
Implementations on Foreign Types
impl<'a, 'b> FindSubstring<&'b [u8]> for &'a [u8]
[src]
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 [u8]
[src]fn find_substring(&self, substr: &'b str) -> Option<usize>
[src]
impl<'a, 'b> FindSubstring<&'b str> for &'a str
[src]
impl<'a, 'b> FindSubstring<&'b str> for &'a str
[src]