color_output/output_list/
type.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
use crate::Output;

/// OutputList struct
///
/// [Official Documentation](https://docs.ltpp.vip/COLOR-OUTPUT/),
///
/// # Code Example
///
/// ## Using the Struct
///
/// ### Using the output Method
///
/// ```rust
/// use color_output::*;
/// OutputList(vec![
///     Output {
///         text: "test_output_list_struct_1",
///         color: ColorType::Use(Color::Default),
///         bg_color: ColorType::Color256(0x000000),
///         endl: false,
///         ..Default::default()
///     },
///     Output {
///         text: "test_output_struct_output_2",
///         color: ColorType::Use(Color::Default),
///         bg_color: ColorType::Use(Color::Blue),
///         endl: true,
///         ..Default::default()
///     },
/// ])
/// .output();
/// ```
#[derive(Debug, Clone)]
pub struct OutputList<'a>(pub Vec<Output<'a>>);