1use std::fmt::{Display, Formatter};
2
3#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
4pub enum TuringOutput {
5 Undefined(usize),
6 Defined((usize, u32)),
7}
8
9impl Default for TuringOutput {
10 fn default() -> Self {
11 Self::Undefined(0)
12 }
13}
14
15impl Display for TuringOutput {
16 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
17 match self {
18 Self::Undefined(_) => write!(f, "Undefined"),
19 Self::Defined((pos, val)) => write!(f, "Defined({}, {})", pos, val),
20 }
21 }
22}