Skip to main content

tui_dispatch_debug/debug/
format.rs

1use std::fmt::Debug;
2
3pub fn debug_string<T>(value: &T) -> String
4where
5    T: Debug,
6{
7    debug_string_compact(value)
8}
9
10pub fn debug_string_compact<T>(value: &T) -> String
11where
12    T: Debug,
13{
14    format!("{:?}", value)
15}
16
17pub fn debug_string_pretty<T>(value: &T) -> String
18where
19    T: Debug,
20{
21    format!("{:#?}", value)
22}