[][src]Enum comfy_table::ContentArrangement

pub enum ContentArrangement {
    Disabled,
    Dynamic,
}

Specify how comfy_table should arrange the content in your table.

use comfy_table::{Table, ContentArrangement};

let mut table = Table::new();
table.set_content_arrangement(ContentArrangement::Dynamic);

Variants

Disabled

Don't do any content arrangement.
Tables with this mode might become wider than your output and look ugly.
Constraints on columns are still respected.

Dynamic

Dynamically determine the width of columns in regard to terminal width and content length.
With this mode, the content in cells will wrap dynamically to get the the best column layout for the given content.
Constraints on columns are still respected.

Warning: If terminal width cannot be determined and no table_width is set via Table::set_table_width, this option won't work and Disabled will be used as a fallback.

Trait Implementations

impl Clone for ContentArrangement[src]

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