steam-enums 0.1.2

Steam protocol enumerations (EResult, EMsg, EAccountType, etc.) for Rust.
Documentation
#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
pub enum EAudioFormat {
    None = 0,
    _16BitLittleEndian = 1,
    Float = 2,
}

impl EAudioFormat {
    pub fn from_i32(val: i32) -> Option<Self> {
        match val {
            x if x == Self::None as i32 => Some(Self::None),
            x if x == Self::_16BitLittleEndian as i32 => Some(Self::_16BitLittleEndian),
            x if x == Self::Float as i32 => Some(Self::Float),
            _ => None,
        }
    }
}