use crate::widths::Framing;
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
#[non_exhaustive]
pub enum Frame {
#[default]
Grid,
HeaderRule,
Plain,
}
impl Frame {
pub(crate) fn framing(self) -> Framing {
match self {
Self::Grid => Framing::Framed,
Self::HeaderRule | Self::Plain => Framing::Unframed,
}
}
}
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
#[non_exhaustive]
pub enum RowSeparation {
#[default]
None,
Rule,
Blank,
}
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
#[non_exhaustive]
pub enum RecordStyle {
#[default]
KeysRight,
KeysLeft,
Boxed,
}