Struct spreadsheet_ods::refs::CellRef [−][src]
pub struct CellRef { /* fields omitted */ }
Reference to a cell.
use spreadsheet_ods::CellRef; use std::convert::TryFrom; let c1 = CellRef::local(5, 2); let c2 = CellRef::remote("spreadsheet-2", 7, 4); let c3 = CellRef::try_from("A5");
Implementations
impl CellRef
[src]
impl CellRef
[src]pub fn new() -> Self
[src]
pub fn local(row: ucell, col: ucell) -> Self
[src]
Creates a cellref within the same table.
pub fn remote<S: Into<String>>(table: S, row: ucell, col: ucell) -> Self
[src]
Creates a cellref that references another table.
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 to_formula(&self) -> String
[src]
Returns a cell reference for a formula.
Trait Implementations
impl StructuralEq for CellRef
[src]
impl StructuralEq for CellRef
[src]impl StructuralPartialEq for CellRef
[src]
impl StructuralPartialEq for CellRef
[src]Auto Trait Implementations
impl RefUnwindSafe for CellRef
impl RefUnwindSafe for CellRef
impl UnwindSafe for CellRef
impl UnwindSafe for CellRef