[−][src]Struct spreadsheet_ods::refs::CellRef
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]
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 Clone for CellRef[src]
impl Debug for CellRef[src]
impl Default for CellRef[src]
impl Display for CellRef[src]
impl Eq for CellRef[src]
impl PartialEq<CellRef> for CellRef[src]
impl StructuralEq for CellRef[src]
impl StructuralPartialEq for CellRef[src]
impl<'_> TryFrom<&'_ str> for CellRef[src]
Auto Trait Implementations
impl RefUnwindSafe for CellRef
impl Send for CellRef
impl Sync for CellRef
impl Unpin for CellRef
impl UnwindSafe for CellRef
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,