Struct spreadsheet_ods::style::stylemap::StyleMap[][src]

pub struct StyleMap { /* fields omitted */ }

One style mapping.

The rules for this are not very clear. It writes the necessary data fine, but the interpretation by LibreOffice is not very intelligible.

  • The base-cell must include a table-name.
  • LibreOffice always adds calcext:conditional-formats which I can’t handle.

TODO: clarify all of this.

Implementations

impl StyleMap[src]

pub fn new<S: Into<String>, T: Into<String>>(
    condition: S,
    applied_style: T,
    cellref: CellRef
) -> Self
[src]

pub fn condition(&self) -> &String[src]

pub fn set_condition<S: Into<String>>(&mut self, cond: S)[src]

pub fn applied_style(&self) -> &String[src]

pub fn set_applied_style<S: Into<String>>(&mut self, style: S)[src]

pub fn base_cell(&self) -> &CellRef[src]

pub fn set_base_cell(&mut self, cellref: CellRef)[src]

Trait Implementations

impl Clone for StyleMap[src]

impl Debug for StyleMap[src]

impl Default for StyleMap[src]

Auto Trait Implementations

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, 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.