Struct prettytable::Row[][src]

pub struct Row { /* fields omitted */ }

Represent a table row made of cells

Methods

impl Row
[src]

Create a new Row backed with cells vector

Create an row of length size, with empty strings stored

Deprecated since 0.8.0

: Will become private in future release. See issue #87

Count the number of column required in the table grid. It takes into account horizontal spanning of cells. For example, a cell with an hspan of 3 will add 3 column to the grid

Get the number of cells in this row

Check if the row is empty (has no cell)

Deprecated since 0.8.0

: Will become private in future release. See issue #87

Get the height of this row

Deprecated since 0.8.0

: Will become private in future release. See issue #87

Get the minimum width required by the cell in the column column. Return 0 if the cell does not exist in this row

Get the cell at index idx

Get the mutable cell at index idx

Set the cell in the row at the given idx index

Append a cell at the end of the row

Insert cell at position index. If index is higher than the row length, the cell will be appended at the end

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

Important traits for Iter<'a, T>

Returns an immutable iterator over cells

Important traits for IterMut<'a, T>

Returns an mutable iterator over cells

Deprecated since 0.8.0

: Will become private in future release. See issue #87

Print the row to out, with separator as column separator, and col_width specifying the width of each columns. Returns the number of printed lines

Deprecated since 0.8.0

: Will become private in future release. See issue #87

Print the row to terminal out, with separator as column separator, and col_width specifying the width of each columns. Apply style when needed. returns the number of printed lines

Trait Implementations

impl Clone for Row
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Row
[src]

Formats the value using the given formatter. Read more

impl Hash for Row
[src]

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

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

impl PartialEq for Row
[src]

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

This method tests for !=.

impl Eq for Row
[src]

impl Default for Row
[src]

Returns the "default value" for a type. Read more

impl Index<usize> for Row
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl IndexMut<usize> for Row
[src]

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

impl<A: ToString> FromIterator<A> for Row
[src]

Creates a value from an iterator. Read more

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

Performs the conversion.

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

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

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

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl<S: ToString> Extend<S> for Row
[src]

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

impl FromIterator<Row> for Table
[src]

Creates a value from an iterator. Read more

Auto Trait Implementations

impl Send for Row

impl Sync for Row