fn find_separator(&self, offset: usize) -> Option<usize> {
        for i in offset..self.buffer.len() {
            let haystack = &self.buffer[i..];
            if haystack.starts_with(&self.separator) {
                return Some(i);
            }
        }

        None
    }
/// Try to find the separator in the internal buffer starting at a given
/// offset.
Try to find the separator in the internal buffer starting at a given
offset.
Try to find the separator in the internal buffer starting at a given offset .
fn find_separator(&self, offset: usize) -> Option<usize> {
        for i in offset..self.buffer.len() {
            let haystack = &self.buffer[i..];
            if haystack.starts_with(&self.separator) {
                return Some(i);
            }
        }
        None
    }
fn find_separator ( & self , offset : usize ) -> Option < usize > { for i in offset .. self . buffer . len ( ) { let haystack = & self . buffer [ i .. ] ; if haystack . starts_with ( & self . separator ) { return Some ( i ) ; } } None }
Try to find the separator in the internal buffer starting at a given
offset.
Try to find the separator in the internal buffer starting at a given offset .
&self
offset
usize
&self
offset
usize