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)?;
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 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
) -> Option<Result<Range<DataType>, XlsError>>
fn worksheet_range( &mut self, name: &str ) -> Option<Result<Range<DataType>, XlsError>>
Read worksheet data in corresponding worksheet path
source§fn worksheet_formula(
&mut self,
name: &str
) -> Option<Result<Range<String>, XlsError>>
fn worksheet_formula( &mut self, name: &str ) -> Option<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> 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