Struct spreadsheet_ods::style::ColStyle[][src]

pub struct ColStyle { /* fields omitted */ }

Describes the style information for a table column. Hardly ever used. It’s easier to set the col_width via Sheet::set_col_width

Implementations

impl ColStyle[src]

pub fn empty() -> Self[src]

empty

pub fn new<S: Into<String>>(name: S) -> Self[src]

New Style.

pub fn style_ref(&self) -> ColStyleRef[src]

Returns a reference.

pub fn origin(&self) -> StyleOrigin[src]

Origin. Should always be Content.

pub fn set_origin(&mut self, origin: StyleOrigin)[src]

Origin. Should always be Content.

pub fn styleuse(&self) -> StyleUse[src]

Should always be Automatic.

pub fn set_styleuse(&mut self, styleuse: StyleUse)[src]

Should always be Automatic.

pub fn name(&self) -> &str[src]

Name.

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

Name.

pub fn attrmap(&self) -> &AttrMap2[src]

Attributes

pub fn attrmap_mut(&mut self) -> &mut AttrMap2[src]

Attributes

pub fn colstyle(&self) -> &AttrMap2[src]

Style attributes

pub fn colstyle_mut(&mut self) -> &mut AttrMap2[src]

Style attributes

pub fn set_break_before(&mut self, pagebreak: PageBreak)[src]

Pagebreak before

pub fn set_break_after(&mut self, pagebreak: PageBreak)[src]

Pagebreak after

pub fn set_rel_col_width(&mut self, rel: f64)[src]

Relative weights for the column width

pub fn set_col_width(&mut self, width: Length)[src]

Column width

pub fn set_use_optimal_col_width(&mut self, opt: bool)[src]

Override switch for the column width.

Trait Implementations

impl Clone for ColStyle[src]

impl Debug for ColStyle[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.