ltpp-output 3.0.0

An atomic output library based on Rust that supports output functionalities through functions, builders, and other methods. It allows customization of text and background colors.
Documentation
use crate::{ColorType, Output};

use crate::output;

impl<'a> Default for Output<'a> {
    fn default() -> Self {
        Output {
            text: "",
            text_color: ColorType::default(),
            text_bg_color: ColorType::default(),
            show_time: false,
            time_text_color: ColorType::default(),
            time_bg_color: ColorType::default(),
            split: "",
            split_color: ColorType::default(),
            split_bg_color: ColorType::default(),
            text_blod: false,
            time_text_blod: false,
            split_text_blod: false,
            endl: false,
        }
    }
}

impl<'a> Output<'a> {
    /// Outputs
    ///
    /// # Returns
    /// - `()` : Nothing is returned.
    pub fn output(self) {
        output(self);
    }
}