pub struct GameVersion { /* private fields */ }
Expand description
Version number of the game
The modern F1 games include their version number in the packet header. The games are versioned
using the scheme MAJOR.MINOR
.
TODO Test that partial order works correctly with version numbers
Implementations§
Trait Implementations§
Source§impl Clone for GameVersion
impl Clone for GameVersion
Source§fn clone(&self) -> GameVersion
fn clone(&self) -> GameVersion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GameVersion
impl Debug for GameVersion
Source§impl Default for GameVersion
impl Default for GameVersion
Source§fn default() -> GameVersion
fn default() -> GameVersion
Returns the “default value” for a type. Read more
Source§impl Display for GameVersion
impl Display for GameVersion
Source§impl Hash for GameVersion
impl Hash for GameVersion
Source§impl Ord for GameVersion
impl Ord for GameVersion
Source§fn cmp(&self, other: &GameVersion) -> Ordering
fn cmp(&self, other: &GameVersion) -> Ordering
1.21.0 · 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
Source§impl PartialEq for GameVersion
impl PartialEq for GameVersion
Source§impl PartialOrd for GameVersion
impl PartialOrd for GameVersion
impl Copy for GameVersion
impl Eq for GameVersion
impl StructuralPartialEq for GameVersion
Auto Trait Implementations§
impl Freeze for GameVersion
impl RefUnwindSafe for GameVersion
impl Send for GameVersion
impl Sync for GameVersion
impl Unpin for GameVersion
impl UnwindSafe for GameVersion
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