milp_types/mixed/
display.rs1use super::*;
2
3impl Debug for MixedValue {
4 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
5 match self {
6 MixedValue::Decimal(d) => f.debug_tuple("Decimal").field(d).finish(),
7 MixedValue::Integer(i) => f.debug_tuple("Integer").field(i).finish(),
8 MixedValue::Boolean(b) => f.debug_tuple("Boolean").field(b).finish(),
9 }
10 }
11}
12
13impl Display for MixedValue {
14 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
15 match self {
16 MixedValue::Decimal(d) => write!(f, "{}", d),
17 MixedValue::Integer(i) => write!(f, "{}", i),
18 MixedValue::Boolean(b) => write!(f, "{}", b),
19 }
20 }
21}
22impl Debug for MixedVariable {
23 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
24 Debug::fmt(&self.wrapper, f)
25 }
26}
27
28impl Display for MixedVariable {
29 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
30 Display::fmt(&self.wrapper, f)
31 }
32}
33
34impl Debug for MixedEquation {
35 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
36 Debug::fmt(&self.wrapper, f)
37 }
38}
39impl Display for MixedEquation {
40 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
41 Display::fmt(&self.wrapper, f)
42 }
43}