[−][src]Trait ca_formats::Input
Types that can be passed to parsers as input.
The trait is implemented for &str and BufReader.
When parsing a file, you can take a BufReader<File> as input.
Associated Types
type Lines: Iterator
An iterator over lines of the input.
type Line: AsRef<str>
A string or a reference to a string, which represents a line of the input.
type Bytes: Iterator<Item = u8>
An iterator over bytes of a line.
Required methods
fn lines(self) -> Self::Lines
Creates an iterator over lines from the input.
fn line(item: <Self::Lines as Iterator>::Item) -> Result<Self::Line, Error>
Converts a item in the lines iterator to a string.
fn bytes(line: Self::Line) -> Self::Bytes
Creates an iterator over bytes from a line.