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
37
38
39
40
41
42
43
#![cfg_attr(feature = "str_pattern_extensions", feature(pattern))]
#![cfg_attr(feature = "str_pattern_extensions", feature(associated_type_bounds))]
pub mod any;
pub mod cast;
pub mod cell;
pub mod cmp;
pub mod coerce;
pub mod display;
pub mod dupe;
pub(crate) mod ext;
pub mod file;
pub mod hash;
pub(crate) mod indenter;
pub mod phantom;
pub mod prelude;
pub mod types;
pub mod variants;
#[cfg(test)]
mod test;
pub fn terminate_on_panic() {
let orig_hook = std::panic::take_hook();
std::panic::set_hook(Box::new(move |panic_info| {
orig_hook(panic_info);
std::process::exit(1);
}));
}