pub struct UnityVersion(pub u64);Expand description
A Unity version packed into one ordered number: major (16 bits), minor (16), build (16), release type (8: a 0,
b 1, c 2, f 3, p 4, x 5), number (8). A version without a release type (5.0.0) is final, number 0.
Tuple Fields§
§0: u64Implementations§
Trait Implementations§
Source§impl Clone for UnityVersion
impl Clone for UnityVersion
impl Copy for UnityVersion
Source§impl Debug for UnityVersion
impl Debug for UnityVersion
Source§impl Display for UnityVersion
impl Display for UnityVersion
impl Eq for UnityVersion
Source§impl Hash for UnityVersion
impl Hash for UnityVersion
Source§impl Ord for UnityVersion
impl Ord for UnityVersion
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 UnityVersion
impl PartialEq for UnityVersion
Source§impl PartialOrd for UnityVersion
impl PartialOrd for UnityVersion
impl StructuralPartialEq for UnityVersion
Auto Trait Implementations§
impl Freeze for UnityVersion
impl RefUnwindSafe for UnityVersion
impl Send for UnityVersion
impl Sync for UnityVersion
impl Unpin for UnityVersion
impl UnsafeUnpin for UnityVersion
impl UnwindSafe for UnityVersion
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.