Struct pos::poq::Reader
[−]
[src]
pub struct Reader<R: Read + Seek> { pub avgint: f64, pub devint: f64, pub maxint: f64, pub version: Version, // some fields omitted }
A poq file reader.
Fields
avgint: f64
devint: f64
maxint: f64
version: Version
Methods
impl Reader<BufReader<File>>
[src]
fn from_path<P: AsRef<Path>>(path: P) -> Result<Reader<BufReader<File>>>
Creates a new reader for the given path.
Examples
use pos::poq::Reader; let reader = Reader::from_path("data/sbet_mission_1.poq").unwrap();
impl<R: Seek + Read> Reader<R>
[src]
fn read_accuracy(&mut self) -> Result<Option<Accuracy>>
Reads a record from this reader.
Examples
use pos::poq::Reader; let mut reader = Reader::from_path("data/sbet_mission_1.poq").unwrap(); let accuracy = reader.read_accuracy().unwrap();
Trait Implementations
impl<R: Debug + Read + Seek> Debug for Reader<R>
[src]
impl<R: Seek + Read> IntoIterator for Reader<R>
[src]
type Item = Accuracy
The type of the elements being iterated over.
type IntoIter = ReaderIterator<R>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl<R: Debug + Seek + Read> AccuracySource for Reader<R>
[src]
fn source(&mut self) -> Result<Option<Accuracy>>
Reads an accuracy reading from this accuracy source.
impl FileAccuracySource for Reader<BufReader<File>>
[src]
fn open_file_accuracy_source<P: AsRef<Path>>(
path: P
) -> Result<Box<AccuracySource>>
path: P
) -> Result<Box<AccuracySource>>
Opens a new accuracy source from a file.