erebus 0.1.2

A CLI message generation library
Documentation
mod characters;
pub use characters::Characters;

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Style {
    pub characters: Characters,
    pub max_width: usize,
}

impl Style {
    #[must_use]
    pub const fn with_characters(self, characters: Characters) -> Self {
        Self { characters, ..self }
    }

    #[must_use]
    pub const fn with_max_width(self, max_width: usize) -> Self {
        Self { max_width, ..self }
    }
}

impl Default for Style {
    fn default() -> Self {
        Self {
            characters: Characters::default(),
            max_width: 80,
        }
    }
}