[−][src]Struct spreadsheet_ods::style::StyleMap
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,
apply_style: T,
cellref: CellRef
) -> Self[src]
condition: S,
apply_style: T,
cellref: CellRef
) -> Self
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
Auto Trait Implementations
impl RefUnwindSafe for StyleMap
impl Send for StyleMap
impl Sync for StyleMap
impl Unpin for StyleMap
impl UnwindSafe for StyleMap
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, 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>,