[−][src]Struct tbltyp::Column
Column structure which represents a formatted column in a row.
Methods
impl Column[src]
Style structure implementation.
pub fn new() -> Self[src]
Returns new instance.
pub fn from_str<S: Into<String>>(txt: S) -> Self[src]
Returns new instance.
pub fn width(&self) -> &Option<usize>[src]
Returns column width.
pub fn text(&self) -> &Option<String>[src]
Returns column width.
pub fn text_width(&self) -> &Option<usize>[src]
Returns text width
pub fn text_align(&self) -> &TextAlign[src]
Returns text width
pub fn text_tail(&self) -> &str[src]
Returns truncation tail string.
pub fn text_pad(&self) -> &str[src]
Returns text pad character.
pub fn set_width(self, width: usize) -> Self[src]
Sets column width.
pub fn set_text<S: Into<String>>(self, text: S) -> Self[src]
Sets column text.
pub fn set_text_width(self, width: usize) -> Self[src]
Sets column text width.
pub fn set_text_align(self, align: TextAlign) -> Self[src]
Sets column text alignement.
pub fn set_text_tail<S: Into<String>>(self, tail: S) -> Self[src]
Sets text truncation tail string.
pub fn set_text_pad<S: Into<String>>(self, pad: S) -> Self[src]
Sets text pad character.
pub fn to_string(&self) -> String[src]
Returns a formatted column content as multiline string.
Trait Implementations
impl Clone for Column[src]
impl Debug for Column[src]
impl PartialEq<Column> for Column[src]
impl StructuralPartialEq for Column[src]
Auto Trait Implementations
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnwindSafe for Column
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,
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.
fn to_owned(&self) -> T[src]
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.
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>,