pub struct MinecraftVersionKey { /* private fields */ }Expand description
Ordering key for Minecraft versions.
The key normalizes missing components, so 1.21 and 1.21.0 have the same
semantic position in a sorted collection. The original identifier is never
changed. Legacy releases sort before year-based releases; snapshots are
ordered by their own naming coordinates, so comparisons across snapshot
naming schemes are approximate.
Trait Implementations§
Source§impl Clone for MinecraftVersionKey
impl Clone for MinecraftVersionKey
impl Copy for MinecraftVersionKey
Source§impl Debug for MinecraftVersionKey
impl Debug for MinecraftVersionKey
impl Eq for MinecraftVersionKey
Source§impl From<MinecraftVersionKind> for MinecraftVersionKey
impl From<MinecraftVersionKind> for MinecraftVersionKey
Source§fn from(kind: MinecraftVersionKind) -> Self
fn from(kind: MinecraftVersionKind) -> Self
Converts to this type from the input type.
Source§impl Hash for MinecraftVersionKey
impl Hash for MinecraftVersionKey
Source§impl Ord for MinecraftVersionKey
impl Ord for MinecraftVersionKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MinecraftVersionKey
impl PartialEq for MinecraftVersionKey
Source§impl PartialOrd for MinecraftVersionKey
impl PartialOrd for MinecraftVersionKey
impl StructuralPartialEq for MinecraftVersionKey
Auto Trait Implementations§
impl Forget for MinecraftVersionKey
impl Freeze for MinecraftVersionKey
impl Move for MinecraftVersionKey
impl RefUnwindSafe for MinecraftVersionKey
impl Send for MinecraftVersionKey
impl Sync for MinecraftVersionKey
impl Unpin for MinecraftVersionKey
impl UnsafeUnpin for MinecraftVersionKey
impl UnwindSafe for MinecraftVersionKey
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.