308 lines
90 KiB
HTML
308 lines
90 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A model includes: * A Workbook: An internal representation of and Excel workbook * Parsed Formulas: All the formulas in the workbook are parsed here (runtime only) * A list of cells with its status (evaluating, evaluated, not evaluated) * A dictionary with the shared strings and their indices. This is an optimization for large files (~1 million rows)"><title>Model in ironcalc_base::model - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-9ee3a5e31a2afa3e.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="ironcalc_base" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0 (82e1608df 2023-12-21)" data-channel="1.75.0" data-search-js="search-8fbf244ebcf71464.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-9dd44ab47b99a0fb.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../ironcalc_base/index.html">ironcalc_base</a><span class="version">0.1.0</span></h2></div><h2 class="location"><a href="#">Model</a></h2><div class="sidebar-elems"><section><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.cells">cells</a></li><li><a href="#structfield.language">language</a></li><li><a href="#structfield.locale">locale</a></li><li><a href="#structfield.parsed_defined_names">parsed_defined_names</a></li><li><a href="#structfield.parsed_formulas">parsed_formulas</a></li><li><a href="#structfield.parser">parser</a></li><li><a href="#structfield.shared_strings">shared_strings</a></li><li><a href="#structfield.tz">tz</a></li><li><a href="#structfield.workbook">workbook</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.add_sheet">add_sheet</a></li><li><a href="#method.cell_formula">cell_formula</a></li><li><a href="#method.copy_cell_style">copy_cell_style</a></li><li><a href="#method.delete_cell">delete_cell</a></li><li><a href="#method.delete_columns">delete_columns</a></li><li><a href="#method.delete_rows">delete_rows</a></li><li><a href="#method.delete_sheet">delete_sheet</a></li><li><a href="#method.delete_sheet_by_name">delete_sheet_by_name</a></li><li><a href="#method.delete_sheet_by_sheet_id">delete_sheet_by_sheet_id</a></li><li><a href="#method.evaluate">evaluate</a></li><li><a href="#method.extend_copied_value">extend_copied_value</a></li><li><a href="#method.extend_to">extend_to</a></li><li><a href="#method.formatted_cell_value">formatted_cell_value</a></li><li><a href="#method.forward_references">forward_references</a></li><li><a href="#method.from_json">from_json</a></li><li><a href="#method.from_workbook">from_workbook</a></li><li><a href="#method.get_all_cells">get_all_cells</a></li><li><a href="#method.get_cell_content">get_cell_content</a></li><li><a href="#method.get_cell_style_index">get_cell_style_index</a></li><li><a href="#method.get_cell_value_by_index">get_cell_value_by_index</a></li><li><a href="#method.get_cell_value_by_ref">get_cell_value_by_ref</a></li><li><a href="#method.get_frozen_columns">get_frozen_columns</a></li><li><a href="#method.get_frozen_rows">get_frozen_rows</a></li><li><a href="#method.get_new_sheet_id">get_new_sheet_id</a></li><li><a href="#method.get_style_for_cell">get_style_for_cell</a></li><li><a href="#method.insert_columns">insert_columns</a></li><li><a href="#method.insert_rows">insert_rows</a></li><li><a href="#method.insert_sheet">insert_sheet</a></li><li><a href="#method.is_empty_cell">is_empty_cell</a></li><li><a href="#method.move_cell_value_to_area">move_cell_value_to_area</a></li><li><a href="#method.move_column_action">move_column_action</a></li><li><a href="#method.new_empty">new_empty</a></li><li><a href="#method.new_sheet">new_sheet</a></li><li><a href="#method.parse_reference">parse_reference</a></li><li><a href="#method.rename_sheet">rename_sheet</a></li><li><a href="#method.rename_sheet_by_index">rename_sheet_by_index</a></li><li><a href="#method.set_cell_empty">set_cell_empty</a></li><li><a href="#method.set_cell_style">set_cell_style</a></li><li><a href="#method.set_cell_style_by_name">set_cell_style_by_name</a></li><li><a href="#method.set_currency">set_currency</a></li><li><a href="#method.set_frozen_columns">set_frozen_columns</a></li><li><a href="#method.set_frozen_rows">set_frozen_rows</a></li><li><a href="#method.set_sheet_color">set_sheet_color</a></li><li><a href="#method.set_sheet_column_style">set_sheet_column_style</a></li><li><a href="#method.set_sheet_row_style">set_sheet_row_style</a></li><li><a href="#method.set_sheet_style">set_sheet_style</a></li><li><a href="#method.set_user_input">set_user_input</a></li><li><a href="#method.sheet_markup">sheet_markup</a></li><li><a href="#method.to_json_str">to_json_str</a></li><li><a href="#method.update_cell_with_bool">update_cell_with_bool</a></li><li><a href="#method.update_cell_with_formula">update_cell_with_formula</a></li><li><a href="#method.update_cell_with_number">update_cell_with_number</a></li><li><a href="#method.update_cell_with_text">update_cell_with_text</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-Model">Clone</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-RefUnwindSafe-for-Model">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Model">Send</a></li><li><a href="#impl-Sync-for-Model">Sync</a></li><li><a href="#impl-Unpin-for-Model">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Model">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-T">Into<U></a></li><li><a href="#impl-ToOwned-for-T">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T">TryInto<U></a></li><li><a href="#impl-VZip%3CV%3E-for-T">VZip<V></a></li></ul></section><h2><a href="index.html">In ironcalc_base::model</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Struct <a href="../index.html">ironcalc_base</a>::<wbr><a href="index.html">model</a>::<wbr><a class="struct" href="#">Model</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/ironcalc_base/model.rs.html#82-92">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub struct Model {
|
||
pub workbook: <a class="struct" href="../types/struct.Workbook.html" title="struct ironcalc_base::types::Workbook">Workbook</a>,
|
||
pub parsed_formulas: <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../expressions/parser/enum.Node.html" title="enum ironcalc_base::expressions::parser::Node">Node</a>>>,
|
||
pub parsed_defined_names: <a class="struct" href="https://doc.rust-lang.org/1.75.0/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><(<a class="enum" href="https://doc.rust-lang.org/1.75.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>), <a class="enum" href="enum.ParsedDefinedName.html" title="enum ironcalc_base::model::ParsedDefinedName">ParsedDefinedName</a>>,
|
||
pub shared_strings: <a class="struct" href="https://doc.rust-lang.org/1.75.0/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.usize.html">usize</a>>,
|
||
pub parser: <a class="struct" href="../expressions/parser/struct.Parser.html" title="struct ironcalc_base::expressions::parser::Parser">Parser</a>,
|
||
pub cells: <a class="struct" href="https://doc.rust-lang.org/1.75.0/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><(<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>, <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>), <a class="enum" href="enum.CellState.html" title="enum ironcalc_base::model::CellState">CellState</a>>,
|
||
pub locale: <a class="struct" href="../locale/struct.Locale.html" title="struct ironcalc_base::locale::Locale">Locale</a>,
|
||
pub language: <a class="struct" href="../language/struct.Language.html" title="struct ironcalc_base::language::Language">Language</a>,
|
||
pub tz: <a class="enum" href="../new_empty/enum.Tz.html" title="enum ironcalc_base::new_empty::Tz">Tz</a>,
|
||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A model includes:
|
||
* A Workbook: An internal representation of and Excel workbook
|
||
* Parsed Formulas: All the formulas in the workbook are parsed here (runtime only)
|
||
* A list of cells with its status (evaluating, evaluated, not evaluated)
|
||
* A dictionary with the shared strings and their indices.
|
||
This is an optimization for large files (~1 million rows)</p>
|
||
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.workbook" class="structfield small-section-header"><a href="#structfield.workbook" class="anchor field">§</a><code>workbook: <a class="struct" href="../types/struct.Workbook.html" title="struct ironcalc_base::types::Workbook">Workbook</a></code></span><span id="structfield.parsed_formulas" class="structfield small-section-header"><a href="#structfield.parsed_formulas" class="anchor field">§</a><code>parsed_formulas: <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../expressions/parser/enum.Node.html" title="enum ironcalc_base::expressions::parser::Node">Node</a>>></code></span><span id="structfield.parsed_defined_names" class="structfield small-section-header"><a href="#structfield.parsed_defined_names" class="anchor field">§</a><code>parsed_defined_names: <a class="struct" href="https://doc.rust-lang.org/1.75.0/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><(<a class="enum" href="https://doc.rust-lang.org/1.75.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>), <a class="enum" href="enum.ParsedDefinedName.html" title="enum ironcalc_base::model::ParsedDefinedName">ParsedDefinedName</a>></code></span><span id="structfield.shared_strings" class="structfield small-section-header"><a href="#structfield.shared_strings" class="anchor field">§</a><code>shared_strings: <a class="struct" href="https://doc.rust-lang.org/1.75.0/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><<a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.usize.html">usize</a>></code></span><span id="structfield.parser" class="structfield small-section-header"><a href="#structfield.parser" class="anchor field">§</a><code>parser: <a class="struct" href="../expressions/parser/struct.Parser.html" title="struct ironcalc_base::expressions::parser::Parser">Parser</a></code></span><span id="structfield.cells" class="structfield small-section-header"><a href="#structfield.cells" class="anchor field">§</a><code>cells: <a class="struct" href="https://doc.rust-lang.org/1.75.0/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><(<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>, <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>), <a class="enum" href="enum.CellState.html" title="enum ironcalc_base::model::CellState">CellState</a>></code></span><span id="structfield.locale" class="structfield small-section-header"><a href="#structfield.locale" class="anchor field">§</a><code>locale: <a class="struct" href="../locale/struct.Locale.html" title="struct ironcalc_base::locale::Locale">Locale</a></code></span><span id="structfield.language" class="structfield small-section-header"><a href="#structfield.language" class="anchor field">§</a><code>language: <a class="struct" href="../language/struct.Language.html" title="struct ironcalc_base::language::Language">Language</a></code></span><span id="structfield.tz" class="structfield small-section-header"><a href="#structfield.tz" class="anchor field">§</a><code>tz: <a class="enum" href="../new_empty/enum.Tz.html" title="enum ironcalc_base::new_empty::Tz">Tz</a></code></span><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Model" class="impl"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#110-1483">source</a><a href="#impl-Model" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Model.html" title="struct ironcalc_base::model::Model">Model</a></h3></section></summary><div class="impl-items"><section id="method.set_sheet_color" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#630-640">source</a><h4 class="code-header">pub fn <a href="#method.set_sheet_color" class="fn">set_sheet_color</a>(&mut self, sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>, color: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section><details class="toggle method-toggle" open><summary><section id="method.is_empty_cell" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#684-687">source</a><h4 class="code-header">pub fn <a href="#method.is_empty_cell" class="fn">is_empty_cell</a>(
|
||
&self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
row: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.bool.html">bool</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Returns true if cell is completely empty.
|
||
Cell with formula that evaluates to empty string is not considered empty.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_json" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#750-754">source</a><h4 class="code-header">pub fn <a href="#method.from_json" class="fn">from_json</a>(s: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="struct.Model.html" title="struct ironcalc_base::model::Model">Model</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Returns a model from a String representation of a workbook</p>
|
||
</div></details><section id="method.from_workbook" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#756-805">source</a><h4 class="code-header">pub fn <a href="#method.from_workbook" class="fn">from_workbook</a>(workbook: <a class="struct" href="../types/struct.Workbook.html" title="struct ironcalc_base::types::Workbook">Workbook</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="struct.Model.html" title="struct ironcalc_base::model::Model">Model</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section><details class="toggle method-toggle" open><summary><section id="method.parse_reference" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#808-860">source</a><h4 class="code-header">pub fn <a href="#method.parse_reference" class="fn">parse_reference</a>(&self, s: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../calc_result/struct.CellReference.html" title="struct ironcalc_base::calc_result::CellReference">CellReference</a>></h4></section></summary><div class="docblock"><p>Parses a reference like “Sheet1!B4” into {0, 2, 4}</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.move_cell_value_to_area" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#863-911">source</a><h4 class="code-header">pub fn <a href="#method.move_cell_value_to_area" class="fn">move_cell_value_to_area</a>(
|
||
&mut self,
|
||
value: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>,
|
||
source: &<a class="struct" href="../expressions/types/struct.CellReferenceIndex.html" title="struct ironcalc_base::expressions::types::CellReferenceIndex">CellReferenceIndex</a>,
|
||
target: &<a class="struct" href="../expressions/types/struct.CellReferenceIndex.html" title="struct ironcalc_base::expressions::types::CellReferenceIndex">CellReferenceIndex</a>,
|
||
area: &<a class="struct" href="../expressions/types/struct.Area.html" title="struct ironcalc_base::expressions::types::Area">Area</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>moves the value in area from source to target.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.extend_to" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#914-939">source</a><h4 class="code-header">pub fn <a href="#method.extend_to" class="fn">extend_to</a>(
|
||
&self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
row: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
target_row: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
target_column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>‘Extends’ the value from cell [sheet, row, column] to [target_row, target_column]</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.extend_copied_value" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#942-970">source</a><h4 class="code-header">pub fn <a href="#method.extend_copied_value" class="fn">extend_copied_value</a>(
|
||
&mut self,
|
||
value: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>,
|
||
source_sheet_name: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>,
|
||
source: &<a class="struct" href="../expressions/types/struct.CellReferenceIndex.html" title="struct ironcalc_base::expressions::types::CellReferenceIndex">CellReferenceIndex</a>,
|
||
target: &<a class="struct" href="../expressions/types/struct.CellReferenceIndex.html" title="struct ironcalc_base::expressions::types::CellReferenceIndex">CellReferenceIndex</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>‘Extends’ value from cell [sheet, row, column] to [target_row, target_column]</p>
|
||
</div></details><section id="method.cell_formula" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#972-990">source</a><h4 class="code-header">pub fn <a href="#method.cell_formula" class="fn">cell_formula</a>(
|
||
&self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
row: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.75.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section><details class="toggle method-toggle" open><summary><section id="method.update_cell_with_text" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#994-1011">source</a><h4 class="code-header">pub fn <a href="#method.update_cell_with_text" class="fn">update_cell_with_text</a>(
|
||
&mut self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
row: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
value: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>
|
||
)</h4></section></summary><div class="docblock"><p>Updates the value of a cell with some text
|
||
It does not change the style unless needs to add “quoting”</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.update_cell_with_bool" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#1015-1026">source</a><h4 class="code-header">pub fn <a href="#method.update_cell_with_bool" class="fn">update_cell_with_bool</a>(
|
||
&mut self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
row: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
value: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.bool.html">bool</a>
|
||
)</h4></section></summary><div class="docblock"><p>Updates the value of a cell with a boolean value
|
||
It does not change the style</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.update_cell_with_number" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#1030-1041">source</a><h4 class="code-header">pub fn <a href="#method.update_cell_with_number" class="fn">update_cell_with_number</a>(
|
||
&mut self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
row: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
value: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.f64.html">f64</a>
|
||
)</h4></section></summary><div class="docblock"><p>Updates the value of a cell with a number
|
||
It does not change the style</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.update_cell_with_formula" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#1046-1065">source</a><h4 class="code-header">pub fn <a href="#method.update_cell_with_formula" class="fn">update_cell_with_formula</a>(
|
||
&mut self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
row: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
formula: <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Updates the formula of given cell
|
||
It does not change the style unless needs to add “quoting”
|
||
Expects the formula to start with “=”</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_user_input" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#1072-1154">source</a><h4 class="code-header">pub fn <a href="#method.set_user_input" class="fn">set_user_input</a>(
|
||
&mut self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
row: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
value: <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>
|
||
)</h4></section></summary><div class="docblock"><p>Sets a cell parametrized by (<code>sheet</code>, <code>row</code>, <code>column</code>) with <code>value</code>
|
||
This mimics a user entering a value on a cell.
|
||
If you enter a currency <code>$100</code> it will set as a number and update the style
|
||
Note that for currencies/percentage there is only one possible style
|
||
The value is always a string, so we need to try to cast it into numbers/booleans/errors</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_cell_value_by_ref" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#1215-1225">source</a><h4 class="code-header">pub fn <a href="#method.get_cell_value_by_ref" class="fn">get_cell_value_by_ref</a>(&self, cell_ref: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="../cell/enum.CellValue.html" title="enum ironcalc_base::cell::CellValue">CellValue</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Gets the Excel Value (Bool, Number, String) of a cell</p>
|
||
</div></details><section id="method.get_cell_value_by_index" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#1227-1241">source</a><h4 class="code-header">pub fn <a href="#method.get_cell_value_by_index" class="fn">get_cell_value_by_index</a>(
|
||
&self,
|
||
sheet_index: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
row: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="../cell/enum.CellValue.html" title="enum ironcalc_base::cell::CellValue">CellValue</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section><section id="method.formatted_cell_value" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#1243-1261">source</a><h4 class="code-header">pub fn <a href="#method.formatted_cell_value" class="fn">formatted_cell_value</a>(
|
||
&self,
|
||
sheet_index: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
row: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section><details class="toggle method-toggle" open><summary><section id="method.get_cell_content" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#1266-1284">source</a><h4 class="code-header">pub fn <a href="#method.get_cell_content" class="fn">get_cell_content</a>(
|
||
&self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
row: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Returns a string with the cell content. If there is a formula returns the formula
|
||
If the cell is empty returns the empty string
|
||
Raises an error if there is no worksheet</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_all_cells" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#1286-1305">source</a><h4 class="code-header">pub fn <a href="#method.get_all_cells" class="fn">get_all_cells</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.CellIndex.html" title="struct ironcalc_base::model::CellIndex">CellIndex</a>></h4></section></summary><div class="docblock"><p>Returns a list of all cells</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.evaluate" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#1308-1321">source</a><h4 class="code-header">pub fn <a href="#method.evaluate" class="fn">evaluate</a>(&mut self)</h4></section></summary><div class="docblock"><p>Evaluates the model with a top-down recursive algorithm</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_cell_empty" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#1324-1328">source</a><h4 class="code-header">pub fn <a href="#method.set_cell_empty" class="fn">set_cell_empty</a>(
|
||
&mut self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
row: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Sets cell to empty. Can be used to delete value without affecting style.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.delete_cell" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#1331-1340">source</a><h4 class="code-header">pub fn <a href="#method.delete_cell" class="fn">delete_cell</a>(
|
||
&mut self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
row: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Deletes a cell by removing it from worksheet data.</p>
|
||
</div></details><section id="method.get_cell_style_index" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#1342-1373">source</a><h4 class="code-header">pub fn <a href="#method.get_cell_style_index" class="fn">get_cell_style_index</a>(&self, sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>, row: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>, column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a></h4></section><section id="method.get_style_for_cell" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#1375-1379">source</a><h4 class="code-header">pub fn <a href="#method.get_style_for_cell" class="fn">get_style_for_cell</a>(&self, sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>, row: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>, column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>) -> <a class="struct" href="struct.Style.html" title="struct ironcalc_base::model::Style">Style</a></h4></section><details class="toggle method-toggle" open><summary><section id="method.to_json_str" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#1382-1390">source</a><h4 class="code-header">pub fn <a href="#method.to_json_str" class="fn">to_json_str</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class="docblock"><p>Returns a JSON string of the workbook</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sheet_markup" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#1393-1418">source</a><h4 class="code-header">pub fn <a href="#method.sheet_markup" class="fn">sheet_markup</a>(&self, sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Returns markup representation of the given <code>sheet</code>.</p>
|
||
</div></details><section id="method.set_currency" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#1420-1438">source</a><h4 class="code-header">pub fn <a href="#method.set_currency" class="fn">set_currency</a>(&mut self, iso: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>></h4></section><section id="method.get_frozen_rows" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#1440-1446">source</a><h4 class="code-header">pub fn <a href="#method.get_frozen_rows" class="fn">get_frozen_rows</a>(&self, sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section><section id="method.get_frozen_columns" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#1448-1454">source</a><h4 class="code-header">pub fn <a href="#method.get_frozen_columns" class="fn">get_frozen_columns</a>(&self, sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section><section id="method.set_frozen_rows" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#1456-1468">source</a><h4 class="code-header">pub fn <a href="#method.set_frozen_rows" class="fn">set_frozen_rows</a>(
|
||
&mut self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
frozen_rows: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section><section id="method.set_frozen_columns" class="method"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#1470-1482">source</a><h4 class="code-header">pub fn <a href="#method.set_frozen_columns" class="fn">set_frozen_columns</a>(
|
||
&mut self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
frozen_columns: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Model-1" class="impl"><a class="src rightside" href="../../src/ironcalc_base/new_empty.rs.html#34-377">source</a><a href="#impl-Model-1" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Model.html" title="struct ironcalc_base::model::Model">Model</a></h3></section></summary><div class="impl-items"><section id="method.get_new_sheet_id" class="method"><a class="src rightside" href="../../src/ironcalc_base/new_empty.rs.html#54-61">source</a><h4 class="code-header">pub fn <a href="#method.get_new_sheet_id" class="fn">get_new_sheet_id</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a></h4></section><details class="toggle method-toggle" open><summary><section id="method.new_sheet" class="method"><a class="src rightside" href="../../src/ironcalc_base/new_empty.rs.html#137-159">source</a><h4 class="code-header">pub fn <a href="#method.new_sheet" class="fn">new_sheet</a>(&mut self)</h4></section></summary><div class="docblock"><p>Adds a sheet with a automatically generated name</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.insert_sheet" class="method"><a class="src rightside" href="../../src/ironcalc_base/new_empty.rs.html#164-195">source</a><h4 class="code-header">pub fn <a href="#method.insert_sheet" class="fn">insert_sheet</a>(
|
||
&mut self,
|
||
sheet_name: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>,
|
||
sheet_index: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
sheet_id: <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Inserts a sheet with a particular index
|
||
Fails if a worksheet with that name already exists or the name is invalid
|
||
Fails if the index is too large</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_sheet" class="method"><a class="src rightside" href="../../src/ironcalc_base/new_empty.rs.html#199-201">source</a><h4 class="code-header">pub fn <a href="#method.add_sheet" class="fn">add_sheet</a>(&mut self, sheet_name: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Adds a sheet with a specific name
|
||
Fails if a worksheet with that name already exists or the name is invalid</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.rename_sheet" class="method"><a class="src rightside" href="../../src/ironcalc_base/new_empty.rs.html#208-213">source</a><h4 class="code-header">pub fn <a href="#method.rename_sheet" class="fn">rename_sheet</a>(
|
||
&mut self,
|
||
old_name: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>,
|
||
new_name: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Renames a sheet and updates all existing references to that sheet.
|
||
It can fail if:</p>
|
||
<ul>
|
||
<li>The original sheet does not exists</li>
|
||
<li>The target sheet already exists</li>
|
||
<li>The target sheet name is invalid</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.rename_sheet_by_index" class="method"><a class="src rightside" href="../../src/ironcalc_base/new_empty.rs.html#220-262">source</a><h4 class="code-header">pub fn <a href="#method.rename_sheet_by_index" class="fn">rename_sheet_by_index</a>(
|
||
&mut self,
|
||
sheet_index: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
new_name: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Renames a sheet and updates all existing references to that sheet.
|
||
It can fail if:</p>
|
||
<ul>
|
||
<li>The original index is too large</li>
|
||
<li>The target sheet name already exists</li>
|
||
<li>The target sheet name is invalid</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.delete_sheet" class="method"><a class="src rightside" href="../../src/ironcalc_base/new_empty.rs.html#267-279">source</a><h4 class="code-header">pub fn <a href="#method.delete_sheet" class="fn">delete_sheet</a>(&mut self, sheet_index: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Deletes a sheet by index. Fails if:</p>
|
||
<ul>
|
||
<li>The sheet does not exists</li>
|
||
<li>It is the last sheet</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.delete_sheet_by_name" class="method"><a class="src rightside" href="../../src/ironcalc_base/new_empty.rs.html#284-290">source</a><h4 class="code-header">pub fn <a href="#method.delete_sheet_by_name" class="fn">delete_sheet_by_name</a>(&mut self, name: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Deletes a sheet by name. Fails if:</p>
|
||
<ul>
|
||
<li>The sheet does not exists</li>
|
||
<li>It is the last sheet</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.delete_sheet_by_sheet_id" class="method"><a class="src rightside" href="../../src/ironcalc_base/new_empty.rs.html#295-301">source</a><h4 class="code-header">pub fn <a href="#method.delete_sheet_by_sheet_id" class="fn">delete_sheet_by_sheet_id</a>(&mut self, sheet_id: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Deletes a sheet by sheet_id. Fails if:</p>
|
||
<ul>
|
||
<li>The sheet by sheet_id does not exists</li>
|
||
<li>It is the last sheet</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.new_empty" class="method"><a class="src rightside" href="../../src/ironcalc_base/new_empty.rs.html#314-376">source</a><h4 class="code-header">pub fn <a href="#method.new_empty" class="fn">new_empty</a>(
|
||
name: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>,
|
||
locale_id: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>,
|
||
timezone: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="struct.Model.html" title="struct ironcalc_base::model::Model">Model</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Creates a new workbook with one empty sheet</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Model-2" class="impl"><a class="src rightside" href="../../src/ironcalc_base/actions.rs.html#10-357">source</a><a href="#impl-Model-2" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Model.html" title="struct ironcalc_base::model::Model">Model</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.insert_columns" class="method"><a class="src rightside" href="../../src/ironcalc_base/actions.rs.html#99-141">source</a><h4 class="code-header">pub fn <a href="#method.insert_columns" class="fn">insert_columns</a>(
|
||
&mut self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
column_count: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Inserts one or more new columns into the model at the specified index.</p>
|
||
<p>This method shifts existing columns to the right to make space for the new columns.</p>
|
||
<h5 id="arguments"><a href="#arguments">Arguments</a></h5>
|
||
<ul>
|
||
<li><code>sheet</code> - The sheet number to retrieve columns from.</li>
|
||
<li><code>column</code> - The index at which the new columns should be inserted.</li>
|
||
<li><code>column_count</code> - The number of columns to insert.</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.delete_columns" class="method"><a class="src rightside" href="../../src/ironcalc_base/actions.rs.html#150-189">source</a><h4 class="code-header">pub fn <a href="#method.delete_columns" class="fn">delete_columns</a>(
|
||
&mut self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
column_count: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Deletes one or more columns from the model starting at the specified index.</p>
|
||
<h5 id="arguments-1"><a href="#arguments-1">Arguments</a></h5>
|
||
<ul>
|
||
<li><code>sheet</code> - The sheet number to retrieve columns from.</li>
|
||
<li><code>column</code> - The index of the first column to delete.</li>
|
||
<li><code>count</code> - The number of columns to delete.</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.insert_rows" class="method"><a class="src rightside" href="../../src/ironcalc_base/actions.rs.html#198-255">source</a><h4 class="code-header">pub fn <a href="#method.insert_rows" class="fn">insert_rows</a>(
|
||
&mut self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
row: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
row_count: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Inserts one or more new rows into the model at the specified index.</p>
|
||
<h5 id="arguments-2"><a href="#arguments-2">Arguments</a></h5>
|
||
<ul>
|
||
<li><code>sheet</code> - The sheet number to retrieve columns from.</li>
|
||
<li><code>row</code> - The index at which the new rows should be inserted.</li>
|
||
<li><code>row_count</code> - The number of rows to insert.</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.delete_rows" class="method"><a class="src rightside" href="../../src/ironcalc_base/actions.rs.html#264-315">source</a><h4 class="code-header">pub fn <a href="#method.delete_rows" class="fn">delete_rows</a>(
|
||
&mut self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
row: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
row_count: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Deletes one or more rows from the model starting at the specified index.</p>
|
||
<h5 id="arguments-3"><a href="#arguments-3">Arguments</a></h5>
|
||
<ul>
|
||
<li><code>sheet</code> - The sheet number to retrieve columns from.</li>
|
||
<li><code>row</code> - The index of the first row to delete.</li>
|
||
<li><code>row_count</code> - The number of rows to delete.</li>
|
||
</ul>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.move_column_action" class="method"><a class="src rightside" href="../../src/ironcalc_base/actions.rs.html#329-356">source</a><h4 class="code-header">pub fn <a href="#method.move_column_action" class="fn">move_column_action</a>(
|
||
&mut self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
delta: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, &'static <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>></h4></section></summary><div class="docblock"><p>Displaces cells due to a move column action
|
||
from initial_column to target_column = initial_column + column_delta
|
||
References will be updated following:
|
||
Cell references:</p>
|
||
<ul>
|
||
<li>All cell references to initial_column will go to target_column</li>
|
||
<li>All cell references to columns in between (initial_column, target_column] will be displaced one to the left</li>
|
||
<li>All other cell references are left unchanged
|
||
Ranges. This is the tricky bit:</li>
|
||
<li>Column is one of the extremes of the range. The new extreme would be target_column.
|
||
Range is then normalized</li>
|
||
<li>Any other case, range is left unchanged.
|
||
NOTE: This does NOT move the data in the columns or move the colum styles</li>
|
||
</ul>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Model-3" class="impl"><a class="src rightside" href="../../src/ironcalc_base/styles.rs.html#213-291">source</a><a href="#impl-Model-3" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Model.html" title="struct ironcalc_base::model::Model">Model</a></h3></section></summary><div class="impl-items"><section id="method.set_cell_style" class="method"><a class="src rightside" href="../../src/ironcalc_base/styles.rs.html#214-226">source</a><h4 class="code-header">pub fn <a href="#method.set_cell_style" class="fn">set_cell_style</a>(
|
||
&mut self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
row: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
style: &<a class="struct" href="struct.Style.html" title="struct ironcalc_base::model::Style">Style</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section><section id="method.copy_cell_style" class="method"><a class="src rightside" href="../../src/ironcalc_base/styles.rs.html#228-243">source</a><h4 class="code-header">pub fn <a href="#method.copy_cell_style" class="fn">copy_cell_style</a>(
|
||
&mut self,
|
||
source_cell: (<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>, <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>),
|
||
destination_cell: (<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>, <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>)
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section><details class="toggle method-toggle" open><summary><section id="method.set_cell_style_by_name" class="method"><a class="src rightside" href="../../src/ironcalc_base/styles.rs.html#246-258">source</a><h4 class="code-header">pub fn <a href="#method.set_cell_style_by_name" class="fn">set_cell_style_by_name</a>(
|
||
&mut self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
row: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
style_name: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Sets the style “style_name” in cell</p>
|
||
</div></details><section id="method.set_sheet_style" class="method"><a class="src rightside" href="../../src/ironcalc_base/styles.rs.html#260-264">source</a><h4 class="code-header">pub fn <a href="#method.set_sheet_style" class="fn">set_sheet_style</a>(
|
||
&mut self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
style_name: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section><section id="method.set_sheet_row_style" class="method"><a class="src rightside" href="../../src/ironcalc_base/styles.rs.html#266-277">source</a><h4 class="code-header">pub fn <a href="#method.set_sheet_row_style" class="fn">set_sheet_row_style</a>(
|
||
&mut self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
row: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
style_name: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section><section id="method.set_sheet_column_style" class="method"><a class="src rightside" href="../../src/ironcalc_base/styles.rs.html#279-290">source</a><h4 class="code-header">pub fn <a href="#method.set_sheet_column_style" class="fn">set_sheet_column_style</a>(
|
||
&mut self,
|
||
sheet: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.u32.html">u32</a>,
|
||
column: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.i32.html">i32</a>,
|
||
style_name: &<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.str.html">str</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Model-4" class="impl"><a class="src rightside" href="../../src/ironcalc_base/diffs.rs.html#28-136">source</a><a href="#impl-Model-4" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Model.html" title="struct ironcalc_base::model::Model">Model</a></h3></section></summary><div class="impl-items"><section id="method.forward_references" class="method"><a class="src rightside" href="../../src/ironcalc_base/diffs.rs.html#60-135">source</a><h4 class="code-header">pub fn <a href="#method.forward_references" class="fn">forward_references</a>(
|
||
&mut self,
|
||
source_area: &<a class="struct" href="../expressions/types/struct.Area.html" title="struct ironcalc_base::expressions::types::Area">Area</a>,
|
||
target: &<a class="struct" href="../expressions/types/struct.CellReferenceIndex.html" title="struct ironcalc_base::expressions::types::CellReferenceIndex">CellReferenceIndex</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><SetCellValue>, <a class="struct" href="https://doc.rust-lang.org/1.75.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></h4></section></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-Model" class="impl"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#81">source</a><a href="#impl-Clone-for-Model" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.75.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.Model.html" title="struct ironcalc_base::model::Model">Model</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../../src/ironcalc_base/model.rs.html#81">source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.75.0/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> <a class="struct" href="struct.Model.html" title="struct ironcalc_base::model::Model">Model</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.75.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.75.0/src/core/clone.rs.html#169">source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.75.0/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.reference.html">&Self</a>)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.75.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe-for-Model" class="impl"><a href="#impl-RefUnwindSafe-for-Model" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.75.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Model.html" title="struct ironcalc_base::model::Model">Model</a></h3></section><section id="impl-Send-for-Model" class="impl"><a href="#impl-Send-for-Model" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.75.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Model.html" title="struct ironcalc_base::model::Model">Model</a></h3></section><section id="impl-Sync-for-Model" class="impl"><a href="#impl-Sync-for-Model" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.75.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Model.html" title="struct ironcalc_base::model::Model">Model</a></h3></section><section id="impl-Unpin-for-Model" class="impl"><a href="#impl-Unpin-for-Model" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.75.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Model.html" title="struct ironcalc_base::model::Model">Model</a></h3></section><section id="impl-UnwindSafe-for-Model" class="impl"><a href="#impl-UnwindSafe-for-Model" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.75.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Model.html" title="struct ironcalc_base::model::Model">Model</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.75.0/src/core/any.rs.html#135">source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.75.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<span class="where fmt-newline">where
|
||
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.75.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.75.0/src/core/any.rs.html#136">source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.75.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.75.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.75.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.75.0/src/core/borrow.rs.html#208">source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.75.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<span class="where fmt-newline">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.75.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.75.0/src/core/borrow.rs.html#210">source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.75.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.75.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.75.0/src/core/borrow.rs.html#216">source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.75.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<span class="where fmt-newline">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.75.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.75.0/src/core/borrow.rs.html#217">source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.75.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.75.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.75.0/src/core/convert/mod.rs.html#763">source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.75.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.75.0/src/core/convert/mod.rs.html#766">source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.75.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.75.0/src/core/convert/mod.rs.html#747-749">source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.75.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<span class="where fmt-newline">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.75.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</span></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.75.0/src/core/convert/mod.rs.html#756">source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.75.0/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
||
<p>That is, this conversion is whatever the implementation of
|
||
<code><a href="https://doc.rust-lang.org/1.75.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.75.0/src/alloc/borrow.rs.html#83-85">source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.75.0/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<span class="where fmt-newline">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.75.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</span></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.75.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.75.0/src/alloc/borrow.rs.html#88">source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.75.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&self) -> T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.75.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.75.0/src/alloc/borrow.rs.html#92">source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.75.0/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/1.75.0/std/primitive.reference.html">&mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.75.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.75.0/src/core/convert/mod.rs.html#803-805">source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.75.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<span class="where fmt-newline">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.75.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</span></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.75.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.75.0/src/core/convert/mod.rs.html#810">source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.75.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.75.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.75.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.75.0/src/core/convert/mod.rs.html#788-790">source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.75.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<span class="where fmt-newline">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.75.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</span></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.75.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.75.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.75.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.75.0/src/core/convert/mod.rs.html#795">source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.75.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.75.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.75.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.75.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-VZip%3CV%3E-for-T" class="impl"><a href="#impl-VZip%3CV%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<V, T> VZip<V> for T<span class="where fmt-newline">where
|
||
V: MultiLane<T>,</span></h3></section></summary><div class="impl-items"><section id="method.vzip" class="method trait-impl"><a href="#method.vzip" class="anchor">§</a><h4 class="code-header">fn <a class="fn">vzip</a>(self) -> V</h4></section></div></details></div></section></div></main></body></html> |