pub struct Padding(_);
Expand description

Padding is responsible for a left/right/top/bottom inner indent of a particular cell.

    let table = Table::new(&data).with(Modify::new(Rows::single(0)).with(Padding::new(0, 0, 1, 1).set_fill('>', '<', '^', 'V')));

Implementations

Construct’s an Padding object.

It uses space(’ ’) as a default fill character. To set a custom character you can use Self::set_fill function.

The function, sets a characters for the padding on an each side.

Trait Implementations

Modification function of a single cell.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.