Trait tttr_toolbox::TTTRFile [−][src]
pub trait TTTRFile { fn time_resolution(&self) -> Result<f64, Error>; fn record_type(&self) -> Result<RecordType, Error>; }
The TTTRFile trait ensures that all files we support are aware of the time_resolution and the what type of records they contain.
TTTR files don’t usually represent time in seconds but rather as a multiple of them that matches the equipment time resolution. This makes it possible to shave a few bits per record.
Required methods
fn time_resolution(&self) -> Result<f64, Error>
[src]
fn record_type(&self) -> Result<RecordType, Error>
[src]
Implementors
impl TTTRFile for PTUFile
[src]
impl TTTRFile for PTUFile
[src]fn record_type(&self) -> Result<RecordType, Error>
[src]
fn record_type(&self) -> Result<RecordType, Error>
[src]Returns the record_type
used in the file. This is matched on each algorithm
with a specific file parser.