Struct prettytable::Table [] [src]

pub struct Table { /* fields omitted */ }

An owned printable table

Methods

impl Table
[src]

[src]

Create an empty table

[src]

Create a table initialized with rows

[src]

Create a table from a CSV string

For more customisability use from_csv()

[src]

Create a table from a CSV file

For more customisability use from_csv()

[src]

Create a table from a CSV reader

[src]

Change the table format. Eg : Separators

[src]

Get a mutable reference to the internal format

[src]

Compute and return the number of column

[src]

Get the number of rows

[src]

Check if the table is empty

[src]

Set the optional title lines

[src]

Unset the title line

[src]

Get a mutable reference to a row

[src]

Get an immutable reference to a row

[src]

Append a row in the table, transferring ownership of this row to the table and returning a mutable reference to the row

[src]

Append an empty row in the table. Return a mutable reference to this new row.

[src]

Insert row at the position index, and return a mutable reference to this row. If index is higher than current numbers of rows, row is appended at the end of the table

[src]

Modify a single element in the table

[src]

Remove the row at position index. Silently skip if the row does not exist

Important traits for ColumnIter<'a>
[src]

Return an iterator over the immutable cells of the column specified by column

Important traits for ColumnIterMut<'a>
[src]

Return an iterator over the mutable cells of the column specified by column

Important traits for Iter<'a, T>
[src]

Returns an iterator over immutable rows

Important traits for IterMut<'a, T>
[src]

Returns an iterator over mutable rows

[src]

Print the table to out

[src]

Print the table to terminal out, applying styles when needed

[src]

Print the table to standard output. Colors won't be displayed unless stdout is a tty terminal, or force_colorize is set to true. In ANSI terminals, colors are displayed using ANSI escape characters. When for example the output is redirected to a file, or piped to another program, the output is considered as not beeing tty, and ANSI escape characters won't be displayed unless force colorize is set to true.

Panic

Panic if writing to standard output fails

[src]

Print the table to standard output. Colors won't be displayed unless stdout is a tty terminal. This means that if stdout is redirected to a file, or piped to another program, no color will be displayed. To force colors rendering, use print_tty() method. Calling printstd() is equivalent to calling print_tty(false)

Panic

Panic if writing to standard output fails

[src]

Write the table to the specified writer.

[src]

Write the table to the specified writer.

This allows for format customisation.

Trait Implementations

impl Clone for Table
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Table
[src]

[src]

Formats the value using the given formatter. Read more

impl Hash for Table
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for Table
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Table
[src]

impl Index<usize> for Table
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl IndexMut<usize> for Table
[src]

[src]

Performs the mutable indexing (container[index]) operation.

impl Display for Table
[src]

[src]

Formats the value using the given formatter. Read more

impl<B: ToString, A: IntoIterator<Item = B>> FromIterator<A> for Table
[src]

[src]

Creates a value from an iterator. Read more

impl FromIterator<Row> for Table
[src]

[src]

Creates a value from an iterator. Read more

impl<T, A, B> From<T> for Table where
    B: ToString,
    A: IntoIterator<Item = B>,
    T: IntoIterator<Item = A>, 
[src]

[src]

Performs the conversion.

impl<'a> IntoIterator for &'a Table
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

impl<'a> IntoIterator for &'a mut Table
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

impl<A: Into<Row>> Extend<A> for Table
[src]

[src]

Extends a collection with the contents of an iterator. Read more

impl<'a> AsRef<TableSlice<'a>> for Table
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Table

impl Sync for Table