pub struct Column { /* private fields */ }
Expand description
Column structure which represents a formatted column in a row.
Implementations§
Source§impl Column
impl Column
Style structure implementation.
Sourcepub fn text_width(&self) -> &Option<usize>
pub fn text_width(&self) -> &Option<usize>
Returns text width
Sourcepub fn text_align(&self) -> &TextAlign
pub fn text_align(&self) -> &TextAlign
Returns text width
Sourcepub fn set_text_width(self, width: usize) -> Self
pub fn set_text_width(self, width: usize) -> Self
Sets column text width.
Sourcepub fn set_text_align(self, align: TextAlign) -> Self
pub fn set_text_align(self, align: TextAlign) -> Self
Sets column text alignement.
Sourcepub fn set_text_tail<S: Into<String>>(self, tail: S) -> Self
pub fn set_text_tail<S: Into<String>>(self, tail: S) -> Self
Sets text truncation tail string.
Sourcepub fn set_text_pad<S: Into<String>>(self, pad: S) -> Self
pub fn set_text_pad<S: Into<String>>(self, pad: S) -> Self
Sets text pad character.
Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)