#[repr(u8)]pub enum Division {
I = 1,
II = 2,
III = 3,
IV = 4,
V = 5,
}
Expand description
LoL and TFT rank divisions, I, II, III, IV, and (deprecated) V.
Ordered such that “higher” divisions are greater than “lower” ones: Division::I > Division::IV
.
Repr’d as equivalent numeric values, (1, 2, 3, 4, 5).
Implements IntoEnumIterator. Iterator excludes deprecated Division::V
.
Variants§
I = 1
Division 1, the best/highest division in a Tier
, or the only division in
apex tiers.
II = 2
Division 2, the second highest division.
III = 3
Division 3, the third highest division.
IV = 4
Division 4, the fourth and lowest division since 2019.
V = 5
👎Deprecated: Removed for 2019.
Division 5, the lowest division, only used before 2019.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Division
impl<'de> Deserialize<'de> for Division
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl IntoEnumIterator for Division
impl IntoEnumIterator for Division
Returns a DoubleEndedIterator of I, II, III, IV. Ordered from high rank (I) to low (IV). Excludes V, which is deprecated.
source§impl Ord for Division
impl Ord for Division
source§impl PartialEq for Division
impl PartialEq for Division
source§impl PartialOrd for Division
impl PartialOrd for Division
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<u8> for Division
impl TryFrom<u8> for Division
§type Error = TryFromPrimitiveError<Division>
type Error = TryFromPrimitiveError<Division>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for Division
impl TryFromPrimitive for Division
impl Copy for Division
impl Eq for Division
impl StructuralPartialEq for Division
Auto Trait Implementations§
impl Freeze for Division
impl RefUnwindSafe for Division
impl Send for Division
impl Sync for Division
impl Unpin for Division
impl UnwindSafe for Division
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.