pub struct Xlsx<RS> { /* private fields */ }
Expand description
A struct representing xml zipped excel file Xlsx, Xlsm, Xlam
Implementations§
Source§impl<RS: Read + Seek> Xlsx<RS>
impl<RS: Read + Seek> Xlsx<RS>
Sourcepub fn load_merged_regions(&mut self) -> Result<(), XlsxError>
pub fn load_merged_regions(&mut self) -> Result<(), XlsxError>
Load the merged regions
Sourcepub fn merged_regions(&self) -> &Vec<(String, String, Dimensions)>
pub fn merged_regions(&self) -> &Vec<(String, String, Dimensions)>
Get the merged regions of all the sheets
Sourcepub fn merged_regions_by_sheet(
&self,
name: &str,
) -> Vec<(&String, &String, &Dimensions)>
pub fn merged_regions_by_sheet( &self, name: &str, ) -> Vec<(&String, &String, &Dimensions)>
Get the merged regions by sheet name
Sourcepub fn load_tables(&mut self) -> Result<(), XlsxError>
pub fn load_tables(&mut self) -> Result<(), XlsxError>
Load the tables from
Sourcepub fn table_names(&self) -> Vec<&String>
pub fn table_names(&self) -> Vec<&String>
Get the names of all the tables
Sourcepub fn table_names_in_sheet(&self, sheet_name: &str) -> Vec<&String>
pub fn table_names_in_sheet(&self, sheet_name: &str) -> Vec<&String>
Get the names of all the tables in a sheet
Sourcepub fn table_by_name(
&mut self,
table_name: &str,
) -> Result<Table<Data>, XlsxError>
pub fn table_by_name( &mut self, table_name: &str, ) -> Result<Table<Data>, XlsxError>
Get the table by name (owned)
Sourcepub fn table_by_name_ref(
&mut self,
table_name: &str,
) -> Result<Table<DataRef<'_>>, XlsxError>
pub fn table_by_name_ref( &mut self, table_name: &str, ) -> Result<Table<DataRef<'_>>, XlsxError>
Get the table by name (ref)
Sourcepub fn worksheet_merge_cells(
&mut self,
name: &str,
) -> Option<Result<Vec<Dimensions>, XlsxError>>
pub fn worksheet_merge_cells( &mut self, name: &str, ) -> Option<Result<Vec<Dimensions>, XlsxError>>
Gets the worksheet merge cell dimensions
Sourcepub fn worksheet_merge_cells_at(
&mut self,
n: usize,
) -> Option<Result<Vec<Dimensions>, XlsxError>>
pub fn worksheet_merge_cells_at( &mut self, n: usize, ) -> Option<Result<Vec<Dimensions>, XlsxError>>
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 Xlsx<RS>
impl<RS: Read + Seek> Reader<RS> for Xlsx<RS>
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>, XlsxError>>
fn vba_project(&mut self) -> Option<Result<Cow<'_, VbaProject>, XlsxError>>
Gets
VbaProject
Source§fn worksheet_range(&mut self, name: &str) -> Result<Range<Data>, XlsxError>
fn worksheet_range(&mut self, name: &str) -> Result<Range<Data>, XlsxError>
Read worksheet data in corresponding worksheet path
Source§fn worksheet_formula(&mut self, name: &str) -> Result<Range<String>, XlsxError>
fn worksheet_formula(&mut self, name: &str) -> Result<Range<String>, XlsxError>
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 Xlsx<RS>where
RS: Freeze,
impl<RS> RefUnwindSafe for Xlsx<RS>where
RS: RefUnwindSafe,
impl<RS> Send for Xlsx<RS>where
RS: Send,
impl<RS> Sync for Xlsx<RS>where
RS: Sync,
impl<RS> Unpin for Xlsx<RS>where
RS: Unpin,
impl<RS> UnwindSafe for Xlsx<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