kutil_cli/debug/format.rs
1//
2// DebugFormat
3//
4
5/// Debug format. Allows for variations of the debug respresentation.
6///
7/// There is no requirement for a [Debuggable](super::debuggable::Debuggable) to support the
8/// various formats, thus it can only be used reliably when the types are known in advance to
9/// support it.
10#[derive(Clone, Copy, Debug, Default)]
11pub enum DebugFormat {
12 /// Verbose implies a consistent full representation with no optional information omitted.
13 Verbose,
14
15 /// Reduced imples an optimized representation in which shorter variations may be used when
16 /// possible, and some optional information may be omitted.
17 ///
18 /// This is the default format.
19 #[default]
20 Reduced,
21
22 /// Compact implies a single-line format.
23 Compact,
24}