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

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

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.

Methods

impl Tier[src]

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

If this tier is an apex tier: master and above.

Inverse of is_standard().

These tiers are NOT queryable by LeagueV4Endpoints::get_league_entries(...).

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]

type Iterator = TierIter

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: 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, 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.