color_output/output/
impl.rs

1use crate::*;
2
3/// Default implementation for Output with empty configuration.
4impl<'a> Default for Output<'a> {
5    fn default() -> Self {
6        Output {
7            text: "",
8            color: ColorType::default(),
9            bg_color: ColorType::default(),
10            blod: false,
11            endl: false,
12        }
13    }
14}
15
16impl<'a> Output<'a> {
17    /// Executes the output operation with current configuration.
18    ///
19    /// # Returns
20    ///
21    /// - `()` - No return value
22    pub fn output(self) {
23        output(self);
24    }
25}