Struct spreadsheet_ods::refs::CellRange [−][src]
pub struct CellRange { /* fields omitted */ }
A cell-range.
As usual for a spreadsheet this is meant as inclusive from and to.
use spreadsheet_ods::CellRange; let r1 = CellRange::local(0, 0, 9, 9); let r2 = CellRange::origin_span(5, 5, (3, 3));
Implementations
impl CellRange
[src]
impl CellRange
[src]pub fn new() -> Self
[src]
pub fn local(row: ucell, col: ucell, to_row: ucell, to_col: ucell) -> Self
[src]
Creates the cell range from from + to data.
pub fn remote<S: Into<String>>(
table: S,
row: ucell,
col: ucell,
to_row: ucell,
to_col: ucell
) -> Self
[src]
table: S,
row: ucell,
col: ucell,
to_row: ucell,
to_col: ucell
) -> Self
Creates the cell range from from + to data.
pub fn origin_span(row: ucell, col: ucell, span: (ucell, ucell)) -> Self
[src]
Creates the cell range from origin + spanning data.
pub fn set_table<S: Into<String>>(&mut self, table: S)
[src]
Table name for references into other tables.
pub fn table(&self) -> Option<&String>
[src]
Table name for references into other tables.
pub fn set_row(&mut self, row: ucell)
[src]
pub fn row(&self) -> ucell
[src]
pub fn set_row_abs(&mut self, abs: bool)
[src]
“$” row reference
pub fn row_abs(&self) -> bool
[src]
“$” row reference
pub fn set_col(&mut self, col: ucell)
[src]
pub fn col(&self) -> ucell
[src]
pub fn set_col_abs(&mut self, abs: bool)
[src]
“$” column reference
pub fn col_abs(&self) -> bool
[src]
“$” column reference
pub fn set_to_row(&mut self, to_row: ucell)
[src]
pub fn to_row(&self) -> ucell
[src]
pub fn set_to_row_abs(&mut self, abs: bool)
[src]
“$” row reference
pub fn to_row_abs(&self) -> bool
[src]
“$” row reference
pub fn set_to_col(&mut self, to_col: ucell)
[src]
pub fn to_col(&self) -> ucell
[src]
pub fn set_to_col_abs(&mut self, abs: bool)
[src]
“$” column reference
pub fn to_col_abs(&self) -> bool
[src]
“$” column reference
pub fn to_formula(&self) -> String
[src]
Returns a range reference for a formula.
pub fn contains(&self, row: ucell, col: ucell) -> bool
[src]
Does the range contain the cell. This is inclusive for to_row and to_col!
pub fn out_looped(&self, row: ucell, col: ucell) -> bool
[src]
Is this range any longer relevant, when looping rows first, then columns?
Trait Implementations
impl StructuralEq for CellRange
[src]
impl StructuralEq for CellRange
[src]impl StructuralPartialEq for CellRange
[src]
impl StructuralPartialEq for CellRange
[src]Auto Trait Implementations
impl RefUnwindSafe for CellRange
impl RefUnwindSafe for CellRange
impl UnwindSafe for CellRange
impl UnwindSafe for CellRange