b0VIM 7.4 M�UaX��J erickt Erick-Tryzelaar-MBP.local ~erickt/projects/rust/serde/serde/serde/src/iter.rs utf-8
3210 #"! U tp = ad � � = � � � � � Y � � � � � p : �
�
�
�
�
�
k
j
3
� � � a # " � � � � V 6 �
�
�
�
y
F
%
� � � � } ` A % � � � � }}} } } Some(Err(e)) => Some(Err(e)), }, Some(Ok(c)) self.col += 1; Some(Ok(c)) => { }, Some(Ok(b'\n')) self.col = 0; self.line += 1; Some(Ok(b'\n')) => { None => None, match self.iter.next() { fn next(&mut self) -> Option<io::Result<u8>> { type Item = io::Result<u8>; impl<Iter: Iterator<Item=io::Result<u8>>> Iterator for LineColIterator<Iter> { } pub fn peek(&mut self) -> Option<&io::Result<u8>> { self.iter.peek() } /// peeks at the next value impl<Iter: Iterator<Item=io::Result<u8>>> LineColIterator<Peekable<Iter>> { } pub fn into_inner(self) -> Iter { self.iter } /// Unwraps this `LineColIterator`, returning the underlying iterator. pub fn get_mut(&mut self) -> &mut Iter { &mut self.iter } /// Gets a mutable reference to the underlying iterator. pub fn get_ref(&self) -> &Iter { &self.iter } /// Gets a reference to the underlying iterator. pub fn col(&self) -> usize { self.col } /// Report the current column inside the iterator. pub fn line(&self) -> usize { self.line } /// Report the current line inside the iterator. } } col: 0, line: 1, iter: iter, LineColIterator { pub fn new(iter: Iter) -> LineColIterator<Iter> { /// Construct a new `LineColIterator<Iter>`. impl<Iter: Iterator<Item=io::Result<u8>>> LineColIterator<Iter> { } col: usize, line: usize, iter: Iter, pub struct LineColIterator<Iter: Iterator<Item=io::Result<u8>>> { /// Iterator over a byte stream that tracks the current position's line and column. use std::iter::Peekable; use std::io; //! Module that contains helper iterators.