Trait nom8::input::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 [u8]> for &'a [u8]

source§

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

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>

Implementors§

source§

impl<I, S, T> FindSubstring<T> for Stateful<I, S>where I: FindSubstring<T>,

source§

impl<I, T> FindSubstring<T> for Located<I>where I: FindSubstring<T>,

source§

impl<I, T> FindSubstring<T> for Streaming<I>where I: FindSubstring<T>,