[][src]Enum riven::consts::Tier

#[repr(u8)]pub enum Tier {
    CHALLENGER,
    GRANDMASTER,
    MASTER,
    DIAMOND,
    PLATINUM,
    GOLD,
    SILVER,
    BRONZE,
    IRON,
    UNRANKED,
}

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

Challenger, the highest tier, an apex tier. Repr: 220_u8.

GRANDMASTER

Grand Master, an apex tier. Repr: 200_u8.

MASTER

Master, an apex tier. Repr: 180_u8.

DIAMOND

Diamond, the higest non-apex tier. Repr: 140_u8.

PLATINUM

Platinum. Repr: 120_u8.

GOLD

Gold. Repr: 100_u8.

SILVER

Silver. Repr: 80_u8.

BRONZE

Bronze. Repr: 60_u8.

IRON

Iron, the lowest tier. Repr: 40_u8.

UNRANKED

Unranked, no tier. Repr: 0_u8.

Implementations

impl Tier[src]

pub const fn is_apex(self) -> bool[src]

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(...).

pub fn is_standard(self) -> bool[src]

If this tier is a "standard" tier: iron through diamond. Returns false for unranked.

ONLY these tiers are queryable by LeagueV4Endpoints::get_league_entries(...).

pub const fn is_ranked(self) -> bool[src]

If this tier is ranked. Returns true for iron through challenger, false for unranked.

pub const fn is_unranked(self) -> bool[src]

If this tier is unranked (Tier::UNRANKED).

UNRANKED is returned by Participant.highest_achieved_season_tier.

pub fn to_ranked(self) -> Option<Self>[src]

Converts UNRANKED to None and all ranked tiers to Some(...).

Trait Implementations

impl AsRef<str> for Tier[src]

impl Clone for Tier[src]

impl Copy for Tier[src]

impl Debug for Tier[src]

impl<'de> Deserialize<'de> for Tier[src]

impl Display for Tier[src]

impl Eq for Tier[src]

impl<'_derivative_strum> From<&'_derivative_strum Tier> for &'static str[src]

impl From<Tier> for u8[src]

impl From<Tier> for &'static str[src]

impl FromStr for Tier[src]

type Err = ParseError

The associated error which can be returned from parsing.

impl Hash for Tier[src]

impl IntoEnumIterator for Tier[src]

Returns a DoubleEndedIterator of I, II, III, IV. Ordered from high rank (I) to low (IV). Excludes V, which is deprecated.

type Iterator = Copied<Iter<'static, Self>>

impl Ord for Tier[src]

impl PartialEq<Tier> for Tier[src]

impl PartialOrd<Tier> for Tier[src]

impl Serialize for Tier[src]

impl StructuralEq for Tier[src]

impl StructuralPartialEq for Tier[src]

impl TryFrom<u8> for Tier[src]

type Error = TryFromPrimitiveError<Self>

The type returned in the event of a conversion error.

impl TryFromPrimitive for Tier[src]

type Primitive = u8

Auto Trait Implementations

impl RefUnwindSafe for Tier

impl Send for Tier

impl Sync for Tier

impl Unpin for Tier

impl UnwindSafe for Tier

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.