pub struct Column { /* private fields */ }
Implementations§
Source§impl Column
impl Column
Sourcepub fn set_header<T>(&mut self, header: T) -> &mut Self
pub fn set_header<T>(&mut self, header: T) -> &mut Self
Sets the value for the header row. When none of the table’s columns has a header value then the header row wont be rendered.
pub fn header(&self) -> &str
pub fn set_align(&mut self, align: Align) -> &mut Self
pub fn align(&self) -> Align
Sourcepub fn set_max_width(&mut self, max_width: usize) -> &mut Self
pub fn set_max_width(&mut self, max_width: usize) -> &mut Self
Sets the maximum width of the content (rendered text) for this column.
The maximum width of the table takes precedence over the maximum width of its columns. So you can’t use the columns maximum width to extends the table beyond its maximum width.
pub fn max_width(&self) -> usize
Trait Implementations§
impl Eq for Column
impl StructuralPartialEq for Column
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnwindSafe for Column
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more