rustic_print/
style_options.rs

1use crossterm::style::Color;
2
3#[derive(Debug, Clone)]
4pub struct StyleOptions {
5    pub foreground: Option<Color>,
6    pub background: Option<Color>,
7}
8
9/// Returns a new `StyleOptions` instance with no foreground or background colors set.
10///
11/// # Returns
12///
13/// A `StyleOptions` instance with both `foreground` and `background` set to `None`.
14impl Default for StyleOptions {
15    fn default() -> Self {
16        StyleOptions {
17            foreground: None,
18            background: None,
19        }
20    }
21}