Enum coc_rs::leagues::LeagueKind
source · #[repr(i32)]pub enum LeagueKind {
Show 23 variants
Unranked = 29_000_000,
BronzeLeagueIII = 29_000_001,
BronzeLeagueII = 29_000_002,
BronzeLeagueI = 29_000_003,
SilverLeagueIII = 29_000_004,
SilverLeagueII = 29_000_005,
SilverLeagueI = 29_000_006,
GoldLeagueIII = 29_000_007,
GoldLeagueII = 29_000_008,
GoldLeagueI = 29_000_009,
CrystalLeagueIII = 29_000_010,
CrystalLeagueII = 29_000_011,
CrystalLeagueI = 29_000_012,
MasterLeagueIII = 29_000_013,
MasterLeagueII = 29_000_014,
MasterLeagueI = 29_000_015,
ChampionLeagueIII = 29_000_016,
ChampionLeagueII = 29_000_017,
ChampionLeagueI = 29_000_018,
TitanLeagueIII = 29_000_019,
TitanLeagueII = 29_000_020,
TitanLeagueI = 29_000_021,
LegendLeague = 29_000_022,
}
Variants§
Unranked = 29_000_000
BronzeLeagueIII = 29_000_001
BronzeLeagueII = 29_000_002
BronzeLeagueI = 29_000_003
SilverLeagueIII = 29_000_004
SilverLeagueII = 29_000_005
SilverLeagueI = 29_000_006
GoldLeagueIII = 29_000_007
GoldLeagueII = 29_000_008
GoldLeagueI = 29_000_009
CrystalLeagueIII = 29_000_010
CrystalLeagueII = 29_000_011
CrystalLeagueI = 29_000_012
MasterLeagueIII = 29_000_013
MasterLeagueII = 29_000_014
MasterLeagueI = 29_000_015
ChampionLeagueIII = 29_000_016
ChampionLeagueII = 29_000_017
ChampionLeagueI = 29_000_018
TitanLeagueIII = 29_000_019
TitanLeagueII = 29_000_020
TitanLeagueI = 29_000_021
LegendLeague = 29_000_022
Trait Implementations§
source§impl Clone for LeagueKind
impl Clone for LeagueKind
source§fn clone(&self) -> LeagueKind
fn clone(&self) -> LeagueKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LeagueKind
impl Debug for LeagueKind
source§impl<'de> Deserialize<'de> for LeagueKind
impl<'de> Deserialize<'de> for LeagueKind
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for LeagueKind
impl Display for LeagueKind
source§impl Ord for LeagueKind
impl Ord for LeagueKind
source§fn cmp(&self, other: &LeagueKind) -> Ordering
fn cmp(&self, other: &LeagueKind) -> Ordering
1.21.0 · 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
source§impl PartialEq for LeagueKind
impl PartialEq for LeagueKind
source§fn eq(&self, other: &LeagueKind) -> bool
fn eq(&self, other: &LeagueKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LeagueKind
impl PartialOrd for LeagueKind
source§fn partial_cmp(&self, other: &LeagueKind) -> Option<Ordering>
fn partial_cmp(&self, other: &LeagueKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for LeagueKind
impl Serialize for LeagueKind
impl Copy for LeagueKind
impl Eq for LeagueKind
impl StructuralPartialEq for LeagueKind
Auto Trait Implementations§
impl RefUnwindSafe for LeagueKind
impl Send for LeagueKind
impl Sync for LeagueKind
impl Unpin for LeagueKind
impl UnwindSafe for LeagueKind
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.