pub struct Xls<RS> { /* private fields */ }
Expand description
A struct representing an old xls format file (CFB)
Implementations
sourceimpl<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
sourceimpl<RS: Read + Seek> Reader<RS> for Xls<RS>
impl<RS: Read + Seek> Reader<RS> for Xls<RS>
sourcefn vba_project(&mut self) -> Option<Result<Cow<'_, VbaProject>, XlsError>>
fn vba_project(&mut self) -> Option<Result<Cow<'_, VbaProject>, XlsError>>
Gets
VbaProject
sourcefn 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
sourcefn 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
sourcefn sheet_names(&self) -> &[String]
fn sheet_names(&self) -> &[String]
Get all sheet names of this workbook, in workbook order Read more
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more