Adding new example counting formulas and errors (#6)

This commit is contained in:
fosdick.io
2024-02-20 23:01:00 -07:00
committed by GitHub
parent d2bab6608b
commit 5cf797d382
3 changed files with 53 additions and 0 deletions

View File

@@ -18,6 +18,12 @@
//! ```rust
#![doc = include_str!("../examples/hello_world.rs")]
//! ```
//!
//! In this example, we demonstrate our ability to handle formulas and errors:
//!
//! ```rust
#![doc = include_str!("../examples/formulas_and_errors.rs")]
//! ```
pub mod calc_result;
pub mod cell;

View File

@@ -1608,6 +1608,7 @@ impl Model {
None => Ok(cell.get_text(&self.workbook.shared_strings, &self.language)),
}
}
/// Returns a list of all cells
pub fn get_all_cells(&self) -> Vec<CellIndex> {
let mut cells = Vec::new();