comfy_table/style/cell.rs
1/// This can be set on [columns](crate::Column::set_cell_alignment) and
2/// [cells](crate::Cell::set_alignment).
3///
4/// Determines how content of cells should be aligned.
5///
6/// ```text
7/// +----------------------+
8/// | Header1 |
9/// +======================+
10/// | Left |
11/// |----------------------+
12/// | center |
13/// |----------------------+
14/// | right |
15/// +----------------------+
16/// ```
17#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
18pub enum CellAlignment {
19 Left,
20 Right,
21 Center,
22}