#[repr(u8)]pub enum ERegionCode {
USEast = 0,
USWest = 1,
SouthAmerica = 2,
Europe = 3,
Asia = 4,
Australia = 5,
MiddleEast = 6,
Africa = 7,
World = 255,
}Expand description
The ERegionCode enumeration.
Source: lang/steammsg.steamd.
Variants§
USEast = 0
USWest = 1
SouthAmerica = 2
Europe = 3
Asia = 4
Australia = 5
MiddleEast = 6
Africa = 7
World = 255
Implementations§
Source§impl ERegionCode
impl ERegionCode
Sourcepub const ALL: &'static [ERegionCode]
pub const ALL: &'static [ERegionCode]
Every variant of ERegionCode.
Sourcepub fn from_value(value: u8) -> Option<Self>
pub fn from_value(value: u8) -> Option<Self>
Builds a variant from its numeric value.
When several variants share a value, the first declared one is returned.
Trait Implementations§
Source§impl Clone for ERegionCode
impl Clone for ERegionCode
impl Copy for ERegionCode
Source§impl Debug for ERegionCode
impl Debug for ERegionCode
impl Eq for ERegionCode
Source§impl From<ERegionCode> for u8
impl From<ERegionCode> for u8
Source§fn from(value: ERegionCode) -> u8
fn from(value: ERegionCode) -> u8
Converts to this type from the input type.
Source§impl Hash for ERegionCode
impl Hash for ERegionCode
Source§impl Ord for ERegionCode
impl Ord for ERegionCode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ERegionCode
impl PartialEq for ERegionCode
Source§impl PartialOrd for ERegionCode
impl PartialOrd for ERegionCode
impl StructuralPartialEq for ERegionCode
Source§impl TryFrom<u8> for ERegionCode
impl TryFrom<u8> for ERegionCode
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§impl TryFrom<u32> for ERegionCode
impl TryFrom<u32> for ERegionCode
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ERegionCode
impl RefUnwindSafe for ERegionCode
impl Send for ERegionCode
impl Sync for ERegionCode
impl Unpin for ERegionCode
impl UnsafeUnpin for ERegionCode
impl UnwindSafe for ERegionCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.