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