Enum tabled::Alignment[][src]

pub enum Alignment {
    Horizontal(AlignmentHorizontal),
    Vertical(AlignmentVertical),
}
Expand description

Alignment represent a horizontal and vertical alignemt setting for a Table

    let table = Table::new(&data).with(Modify::new(Row(..1)).with(Alignment::center_horizontal()));

Variants

Implementations

Top constructs a vertical alignment to TOP

Bottom constructs a vertical alignment to BOTTOM

Center_vertical constructs a vertical alignment to CENTER

Left constructs a horizontal alignment to LEFT

Right constructs a horizontal alignment to RIGHT

Center_horizontal constructs a horizontal alignment to CENTER

Trait Implementations

Modification function of a Cell

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

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.