[][src]Struct rawcmd_table::Cell

pub struct Cell { /* fields omitted */ }

Cell structure which represents a formatted column in a row.

Methods

impl Cell[src]

Style structure implementation.

pub fn new() -> Self[src]

Returns new instance.

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

Returns cell width.

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

Returns cell width.

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

Returns text width

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

Returns text width

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

Returns truncation tail string.

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

Returns text pad character.

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

Sets cell width.

pub fn set_text(self, text: &str) -> Self[src]

Sets cell text.

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

Sets cell text width.

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

Sets cell text alignement.

pub fn set_text_tail(self, tail: &str) -> Self[src]

Sets text truncation tail string.

pub fn set_text_pad(self, pad: char) -> Self[src]

Sets text pad character.

pub fn build_rows(&self) -> Vec<String>[src]

Returns a formatted cell content as multiline string.

Trait Implementations

impl Clone for Cell[src]

impl Debug for Cell[src]

impl PartialEq<Cell> for Cell[src]

impl StructuralPartialEq for Cell[src]

Auto Trait Implementations

impl RefUnwindSafe for Cell

impl Send for Cell

impl Sync for Cell

impl Unpin for Cell

impl UnwindSafe for Cell

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.