Trait calamine::ExcelReader
[−]
[src]
pub trait ExcelReader: Sized { fn new(f: File) -> Result<Self>; fn has_vba(&mut self) -> bool; fn vba_project(&mut self) -> Result<Cow<VbaProject>>; fn read_shared_strings(&mut self) -> Result<Vec<String>>; fn read_sheets_names(&mut self,
relationships: &HashMap<Vec<u8>, String>)
-> Result<HashMap<String, String>>; fn read_relationships(&mut self) -> Result<HashMap<Vec<u8>, String>>; fn read_worksheet_range(&mut self,
path: &str,
strings: &[String])
-> Result<Range>; }
A trait to share excel reader functions accross different FileType
s
Required Methods
fn new(f: File) -> Result<Self>
Creates a new instance based on the actual file
fn has_vba(&mut self) -> bool
Does the workbook contain a vba project
fn vba_project(&mut self) -> Result<Cow<VbaProject>>
Gets VbaProject
Gets vba references
fn read_sheets_names(&mut self,
relationships: &HashMap<Vec<u8>, String>)
-> Result<HashMap<String, String>>
relationships: &HashMap<Vec<u8>, String>)
-> Result<HashMap<String, String>>
Read sheets from workbook.xml and get their corresponding path from relationships
fn read_relationships(&mut self) -> Result<HashMap<Vec<u8>, String>>
Read workbook relationships
fn read_worksheet_range(&mut self,
path: &str,
strings: &[String])
-> Result<Range>
path: &str,
strings: &[String])
-> Result<Range>
Read worksheet data in corresponding worksheet path