Struct IoRead
pub struct IoRead<R>
where
R: Read, { /* private fields */ }
JSON input source that reads from a std::io input stream.
Implementations
impl<R> IoRead<R>
where
R: Read,
fn new(reader: R) -> SelfCreate a JSON input source to read from a std::io input stream.
When reading from a source against which short reads are not efficient, such as a
File, you will want to apply your own buffering because serde_json will not buffer the input. Seestd::io::BufReader.