Skip to main content

Row

Struct Row 

Source
pub struct Row { /* private fields */ }
Expand description

A row’s cells and the row’s own options. Port of rich.table.Row (which upstream keeps apart from the cells, stored per column). A body row of a Table, as upstream’s rich.table.Row plus the row’s cells (upstream keeps them per column). Read it with Table::rows.

Implementations§

Source§

impl Row

Read access to a row: its cells and upstream’s public Row fields. Not upstream as methods; they change nothing.

Source

pub fn cells(&self) -> &[Cell]

The row’s cells, as added. A row may hold fewer cells than the table has columns; the missing ones render empty.

Source

pub fn style(&self) -> Option<&StyleType>

The row’s own style (upstream Row.style).

Source

pub fn end_section(&self) -> bool

Whether a line is drawn beneath the row (upstream Row.end_section).

Auto Trait Implementations§

§

impl !RefUnwindSafe for Row

§

impl !UnwindSafe for Row

§

impl Freeze for Row

§

impl Send for Row

§

impl Sync for Row

§

impl Unpin for Row

§

impl UnsafeUnpin for Row

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.