[−][src]Enum comfy_table::ContentArrangement
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
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.
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]
pub fn clone(&self) -> ContentArrangement
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ContentArrangement
[src]
Auto Trait Implementations
impl RefUnwindSafe for ContentArrangement
impl Send for ContentArrangement
impl Sync for ContentArrangement
impl Unpin for ContentArrangement
impl UnwindSafe for ContentArrangement
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,