Struct diffusion::FileReader
[−]
[src]
pub struct FileReader<T> where T: Read {
// some fields omitted
}
is a reader that reads from a file. This file needs to be generated by a corresponding writer. Currently it does not support a growing file, e.g. files cannot be modified during read.
Methods
impl<T> FileReader<T> where T: Read
[src]
fn new(file: T) -> Result<FileReader<T>>
returns a new instance of FileReader
.
It returns error if the file is found corrupted.