We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e445fec commit ba35a84Copy full SHA for ba35a84
src/mode/terminal.rs
@@ -96,6 +96,7 @@ impl Cursor {
96
}
97
98
/// Errors which can occur when interacting with the terminal mode
99
+#[derive(Clone)]
100
pub enum TerminalModeError<DI>
101
where
102
DI: DisplayInterface,
@@ -108,6 +109,19 @@ where
108
109
OutOfBounds,
110
111
112
+impl<DI> core::fmt::Debug for TerminalModeError<DI>
113
+where
114
+ DI: DisplayInterface,
115
+{
116
+ fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> Result<(), core::fmt::Error> {
117
+ match self {
118
+ InterfaceError(_) => "InterfaceError".fmt(f),
119
+ Uninitialized => "Uninitialized".fmt(f),
120
+ OutOfBounds => "OutOfBound".fmt(f),
121
+ }
122
123
+}
124
+
125
// Cannot use From<_> due to coherence
126
trait IntoTerminalModeResult<DI, T>
127
0 commit comments