ctl_layout/align.rs
1//! Which edge a cell's text sits against.
2
3/// Which edge of its column a cell's text sits against.
4///
5/// A [`Column`](crate::Column) applies it to its header and to every cell
6/// below it. The other end of a short cell is padded with spaces.
7#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
8#[non_exhaustive]
9pub enum Align {
10 /// Text starts at the left edge.
11 #[default]
12 Left,
13 /// Text ends at the right edge. Numbers line up on their last digit.
14 Right,
15}