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]

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]

type Error = OdsError

The type returned in the event of a conversion error.

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.