pub struct Xls<RS> { /* private fields */ }
Expand description
A struct representing an old xls format file (CFB)
Implementations§
Source§impl<RS: Read + Seek> Xls<RS>
impl<RS: Read + Seek> Xls<RS>
Sourcepub fn new_with_options(
reader: RS,
options: XlsOptions,
) -> Result<Self, XlsError>
pub fn new_with_options( reader: RS, options: XlsOptions, ) -> Result<Self, XlsError>
Creates a new instance using Options
to inform parsing.
use calamine::{Xls,XlsOptions};
let mut options = XlsOptions::default();
// ...set options...
let workbook = Xls::new_with_options(reader, options)?;
Sourcepub fn worksheet_merge_cells(&self, name: &str) -> Option<Vec<Dimensions>>
pub fn worksheet_merge_cells(&self, name: &str) -> Option<Vec<Dimensions>>
Gets the worksheet merge cell dimensions
Sourcepub fn worksheet_merge_cells_at(&self, n: usize) -> Option<Vec<Dimensions>>
pub fn worksheet_merge_cells_at(&self, n: usize) -> Option<Vec<Dimensions>>
Get the nth worksheet. Shortcut for getting the nth sheet_name, then the corresponding worksheet.
Trait Implementations§
Source§impl<RS: Read + Seek> Reader<RS> for Xls<RS>
impl<RS: Read + Seek> Reader<RS> for Xls<RS>
Source§fn metadata(&self) -> &Metadata
fn metadata(&self) -> &Metadata
Parses Workbook stream, no need for the relationships variable
Source§fn with_header_row(&mut self, header_row: HeaderRow) -> &mut Self
fn with_header_row(&mut self, header_row: HeaderRow) -> &mut Self
Set header row (i.e. first row to be read)
If
header_row
is None
, the first non-empty row will be used as header rowSource§fn vba_project(&mut self) -> Option<Result<Cow<'_, VbaProject>, XlsError>>
fn vba_project(&mut self) -> Option<Result<Cow<'_, VbaProject>, XlsError>>
Gets
VbaProject
Source§fn worksheet_range(&mut self, name: &str) -> Result<Range<Data>, XlsError>
fn worksheet_range(&mut self, name: &str) -> Result<Range<Data>, XlsError>
Read worksheet data in corresponding worksheet path
Source§fn worksheet_formula(&mut self, name: &str) -> Result<Range<String>, XlsError>
fn worksheet_formula(&mut self, name: &str) -> Result<Range<String>, XlsError>
Read worksheet formula in corresponding worksheet path
Source§fn sheet_names(&self) -> Vec<String>
fn sheet_names(&self) -> Vec<String>
Get all sheet names of this workbook, in workbook order Read more
Source§fn sheets_metadata(&self) -> &[Sheet]
fn sheets_metadata(&self) -> &[Sheet]
Fetch all sheets metadata
Source§fn defined_names(&self) -> &[(String, String)]
fn defined_names(&self) -> &[(String, String)]
Get all defined names (Ranges names etc)
Auto Trait Implementations§
impl<RS> Freeze for Xls<RS>
impl<RS> RefUnwindSafe for Xls<RS>where
RS: RefUnwindSafe,
impl<RS> Send for Xls<RS>where
RS: Send,
impl<RS> Sync for Xls<RS>where
RS: Sync,
impl<RS> Unpin for Xls<RS>where
RS: Unpin,
impl<RS> UnwindSafe for Xls<RS>where
RS: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more