add benchmark

This commit is contained in:
Evan Almloff committed 2022-04-20 21:44:37 -05:00
1 parent 366a0a8026
commit c8919ad77b
5 files changed
+650 -60

No files matched your search

+16 -1
View File
@@ -1,6 +1,21 @@
#[derive(Default, Clone, Copy)]
#[derive(Clone, Copy)]
pub struct Config {
pub rendering_mode: RenderingMode,
/// Controls if the terminal quit when the user presses `ctrl+c`?
/// To handle quiting on your own, use the [crate::TuiContext] root context.
pub ctrl_c_quit: bool,
/// Controls if the terminal should dislay anything, usefull for testing.
pub headless: bool,
}
impl Default for Config {
fn default() -> Self {
Self {
rendering_mode: Default::default(),
ctrl_c_quit: true,
headless: false,
}
}
}
#[derive(Clone, Copy)]