1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum InstallLocation {
Auto,
Internal,
External,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum ScreenCompatibilityMode {
On,
Off,
}
impl std::fmt::Display for InstallLocation {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match *self {
Self::Auto => write!(f, "auto"),
Self::Internal => write!(f, "internal"),
Self::External => write!(f, "external"),
}
}
}
impl std::fmt::Display for ScreenCompatibilityMode {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match *self {
Self::On => write!(f, "on"),
Self::Off => write!(f, "off"),
}
}
}