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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::*;
use output_list_builder::r#type::OutputListBuilder;
use task::r#type::{Task, TaskResult};
use text::r#type::Text;

#[test]

fn test_task() {
    let mut task: Task<'_> = Task::new();
    task.add(Text::default()).add(Text {
        text: "1",
        ..Text::default()
    });
    let query_task: TaskResult<'_> = task.query_idx(1);
    let query_task_fail: TaskResult<'_> = task.query_idx(100);
    task.run_all();
    println!("{:?}", task);
}