[−][src]Enum riven::consts::Tier
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
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]
pub fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
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.
pub fn from_str(s: &str) -> Result<Tier, Self::Err>
[src]
impl Hash for Tier
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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.
impl Ord for Tier
[src]
pub fn cmp(&self, other: &Tier) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Tier> for Tier
[src]
pub fn eq(&self, other: &Tier) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<Tier> for Tier
[src]
pub fn partial_cmp(&self, other: &Tier) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[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.
pub fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
[src]
impl TryFromPrimitive for Tier
[src]
type Primitive = u8
pub const NAME: &'static str
[src]
pub fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
[src]
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,