#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[non_exhaustive]
pub struct ListFormatterOptions {
pub length: Option<ListLength>,
}
impl Default for ListFormatterOptions {
fn default() -> Self {
Self::default()
}
}
impl ListFormatterOptions {
pub const fn default() -> Self {
Self { length: None }
}
pub const fn with_length(mut self, length: ListLength) -> Self {
self.length = Some(length);
self
}
}
#[derive(Copy, Clone, PartialEq, Eq, Debug, Hash, Default)]
#[non_exhaustive]
pub enum ListLength {
#[default]
Wide,
Short,
Narrow,
}