[][src]Struct tbltyp::Column

pub struct Column { /* fields omitted */ }

Column structure which represents a formatted column in a row.

Methods

impl Column[src]

Style structure implementation.

pub fn new() -> Self[src]

Returns new instance.

pub fn from_str<S: Into<String>>(txt: S) -> Self[src]

Returns new instance.

pub fn width(&self) -> &Option<usize>[src]

Returns column width.

pub fn text(&self) -> &Option<String>[src]

Returns column width.

pub fn text_width(&self) -> &Option<usize>[src]

Returns text width

pub fn text_align(&self) -> &TextAlign[src]

Returns text width

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

Returns truncation tail string.

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

Returns text pad character.

pub fn set_width(self, width: usize) -> Self[src]

Sets column width.

pub fn set_text<S: Into<String>>(self, text: S) -> Self[src]

Sets column text.

pub fn set_text_width(self, width: usize) -> Self[src]

Sets column text width.

pub fn set_text_align(self, align: TextAlign) -> Self[src]

Sets column text alignement.

pub fn set_text_tail<S: Into<String>>(self, tail: S) -> Self[src]

Sets text truncation tail string.

pub fn set_text_pad<S: Into<String>>(self, pad: S) -> Self[src]

Sets text pad character.

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

Returns a formatted column content as multiline string.

Trait Implementations

impl Clone for Column[src]

impl Debug for Column[src]

impl PartialEq<Column> for Column[src]

impl StructuralPartialEq for Column[src]

Auto Trait Implementations

impl RefUnwindSafe for Column

impl Send for Column

impl Sync for Column

impl Unpin for Column

impl UnwindSafe for Column

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.