[−][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
.
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]
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.
fn from_str(s: &str) -> Result<Tier, Self::Err>
[src]
impl Hash for Tier
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl IntoEnumIterator for Tier
[src]
impl Ord for Tier
[src]
fn cmp(&self, other: &Tier) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Tier> for Tier
[src]
impl PartialOrd<Tier> for Tier
[src]
fn partial_cmp(&self, other: &Tier) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
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.
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
[src]
impl TryFromPrimitive for Tier
[src]
type Primitive = u8
const NAME: &'static str
[src]
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: 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,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[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.
fn to_owned(&self) -> T
[src]
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.
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>,