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
35
36
#![allow(
    clippy::let_unit_value, // When implementing widgets, we want to spell
                            // out our Response type even if it's unit.
    clippy::new_without_default,
)]

mod icons;
mod text_renderer;

pub mod colors;
pub mod font;
pub mod shorthand;
pub mod style;
pub mod util;
pub mod widgets;

pub use self::shorthand::*;

#[doc(hidden)]
pub struct DocTest {
    state: yakui_core::Yakui,
}

impl DocTest {
    pub fn start() -> Self {
        let mut state = yakui_core::Yakui::new();
        state.start();
        Self { state }
    }
}

impl Drop for DocTest {
    fn drop(&mut self) {
        self.state.finish();
    }
}