Enum riven::consts::Tier [−][src]
#[repr(u8)] pub enum Tier { CHALLENGER, GRANDMASTER, MASTER, DIAMOND, PLATINUM, GOLD, SILVER, BRONZE, IRON, UNRANKED, }
Expand description
LoL and TFT ranked tiers, such as gold, diamond, challenger, etc.
Sorts from lowest rank to highest rank.
Repr’d as arbitrary u8
values.
Implements IntoEnumIterator.
Variants
Challenger, the highest tier, an apex tier. Repr: 220_u8
.
Grand Master, an apex tier. Repr: 200_u8
.
Master, an apex tier. Repr: 180_u8
.
Diamond, the higest non-apex tier. Repr: 140_u8
.
Platinum. Repr: 120_u8
.
Gold. Repr: 100_u8
.
Silver. Repr: 80_u8
.
Bronze. Repr: 60_u8
.
Iron, the lowest tier. Repr: 40_u8
.
Unranked, no tier. Repr: 0_u8
.
Implementations
If this tier is an apex tier: master, grandmaster, or challenger. Returns false for unranked.
These tiers are NOT queryable by LeagueV4Endpoints::get_league_entries(…).
If this tier is a “standard” tier: iron through diamond. Returns false for unranked.
ONLY these tiers are queryable by LeagueV4Endpoints::get_league_entries(…).
If this tier is ranked. Returns true for iron through challenger, false for unranked.
If this tier is unranked (Tier::UNRANKED
).
UNRANKED is returned by Participant.highest_achieved_season_tier
.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Returns a DoubleEndedIterator of I, II, III, IV. Ordered from high rank (I) to low (IV). Excludes V, which is deprecated.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
type Error = TryFromPrimitiveError<Self>
type Error = TryFromPrimitiveError<Self>
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Tier
impl UnwindSafe for Tier
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more