tuigui 0.23.0

An easy-to-use, highly extensible, and speedy TUI library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::Style;

impl ContentProcessorOutput for String {
    fn clear_output() -> Self {
        String::from(" ")
    }
}

pub trait ContentProcessorOutput {
    /// Returns output to use when Content::Clear is found
    fn clear_output() -> Self;
}

pub trait ContentProcessor<T: ContentProcessorOutput> {
    fn process(&mut self, character: char, style: &Style) -> T;
}