[][src]Struct f1_api::packet::header::GameVersion

pub struct GameVersion { /* fields omitted */ }

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

Methods

impl GameVersion[src]

pub fn new(major: u8, minor: u8) -> Self[src]

Constructs a new GameVersion.

impl GameVersion[src]

pub fn major(&self) -> u8[src]

Returns the major version of the game.

pub fn minor(&self) -> u8[src]

Returns the minor version of the game.

Trait Implementations

impl Clone for GameVersion[src]

impl Copy for GameVersion[src]

impl Debug for GameVersion[src]

impl Default for GameVersion[src]

impl Display for GameVersion[src]

impl Eq for GameVersion[src]

impl Hash for GameVersion[src]

impl Ord for GameVersion[src]

impl PartialEq<GameVersion> for GameVersion[src]

impl PartialOrd<GameVersion> for GameVersion[src]

impl StructuralEq for GameVersion[src]

impl StructuralPartialEq for GameVersion[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.