Struct prettytable::format::TableFormat [−][src]
Contains the table formatting rules
Implementations
impl TableFormat
[src]
pub fn new() -> TableFormat
[src]
Create a new empty TableFormat.
pub fn get_padding(&self) -> (usize, usize)
[src]
Return a tuple with left and right padding
pub fn padding(&mut self, left: usize, right: usize)
[src]
Set left and right padding
pub fn column_separator(&mut self, separator: char)
[src]
Set the character used for internal column separation
pub fn borders(&mut self, border: char)
[src]
Set the character used for table borders
pub fn left_border(&mut self, border: char)
[src]
Set the character used for left table border
pub fn right_border(&mut self, border: char)
[src]
Set the character used for right table border
pub fn separator(&mut self, what: LinePosition, separator: LineSeparator)
[src]
Set a line separator
pub fn separators(&mut self, what: &[LinePosition], separator: LineSeparator)
[src]
Set format for multiple kind of line separator
pub fn indent(&mut self, spaces: usize)
[src]
Set global indentation in spaces used when rendering a table
pub fn get_indent(&self) -> usize
[src]
Get global indentation in spaces used when rendering a table
pub fn get_column_separator(&self, pos: ColumnPosition) -> Option<char>
[src]
Returns the character used to separate columns.
pos
specify if the separator is left/right final or internal to the table
Trait Implementations
impl Clone for TableFormat
[src]
fn clone(&self) -> TableFormat
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TableFormat
[src]
impl Debug for TableFormat
[src]
impl Default for TableFormat
[src]
impl Eq for TableFormat
[src]
impl From<TableFormat> for FormatBuilder
[src]
fn from(fmt: TableFormat) -> Self
[src]
impl Hash for TableFormat
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Into<TableFormat> for FormatBuilder
[src]
fn into(self) -> TableFormat
[src]
impl PartialEq<TableFormat> for TableFormat
[src]
fn eq(&self, other: &TableFormat) -> bool
[src]
fn ne(&self, other: &TableFormat) -> bool
[src]
impl StructuralEq for TableFormat
[src]
impl StructuralPartialEq for TableFormat
[src]
Auto Trait Implementations
impl RefUnwindSafe for TableFormat
impl Send for TableFormat
impl Sync for TableFormat
impl Unpin for TableFormat
impl UnwindSafe for TableFormat
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>,