steam_enums/
ehdrvisualization.rs1#![allow(non_camel_case_types)]
2#![allow(non_upper_case_globals)]
3#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
4#[repr(i32)]
5pub enum EHDRVisualization {
6 None = 0,
7 Heatmap = 1,
8 Analysis = 2,
9 HeatmapExtended = 3,
10 HeatmapClassic = 4,
11}
12
13impl EHDRVisualization {
14 pub fn from_i32(val: i32) -> Option<Self> {
15 match val {
16 x if x == Self::None as i32 => Some(Self::None),
17 x if x == Self::Heatmap as i32 => Some(Self::Heatmap),
18 x if x == Self::Analysis as i32 => Some(Self::Analysis),
19 x if x == Self::HeatmapExtended as i32 => Some(Self::HeatmapExtended),
20 x if x == Self::HeatmapClassic as i32 => Some(Self::HeatmapClassic),
21 _ => None,
22 }
23 }
24}