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