[go: up one dir, main page]

[][src]Struct comfy_table::cell::Cell

pub struct Cell { /* fields omitted */ }

The representation of a single cell in a table row. Each cell contains a string, which will later be displayed at the respective row/column.

Methods

impl Cell[src]

pub fn new<T: ToString>(content: T) -> Self[src]

Create a new Cell

pub fn get_content(&self) -> String[src]

Return a copy of the content contained in this cell.

Trait Implementations

impl Clone for Cell[src]

impl ToString for Cell[src]

This is quite expensive, but it's convenient

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.