Struct chariot_drs::DrsFile
[−]
[src]
pub struct DrsFile { pub header: DrsHeader, pub tables: Vec<DrsLogicalTable>, }
Fields
header: DrsHeader
tables: Vec<DrsLogicalTable>
Methods
impl DrsFile
[src]
fn empty() -> DrsFile
fn find_table(&self, file_type: DrsFileType) -> Option<&DrsLogicalTable>
DRS archives are partitioned into tables by file type. This method will attempt to find a table of the requested type, and return None if it doesn't exist.
fn read_from_file<P: AsRef<Path>>(file_name: P) -> Result<DrsFile>
Loads a DRS archive from the file system.