[−][src]Struct f1_api::packet::header::GameVersion
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]
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]
fn clone(&self) -> GameVersion[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for GameVersion[src]
impl Debug for GameVersion[src]
impl Default for GameVersion[src]
fn default() -> GameVersion[src]
impl Display for GameVersion[src]
impl Eq for GameVersion[src]
impl Hash for GameVersion[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Ord for GameVersion[src]
fn cmp(&self, other: &GameVersion) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<GameVersion> for GameVersion[src]
fn eq(&self, other: &GameVersion) -> bool[src]
fn ne(&self, other: &GameVersion) -> bool[src]
impl PartialOrd<GameVersion> for GameVersion[src]
fn partial_cmp(&self, other: &GameVersion) -> Option<Ordering>[src]
fn lt(&self, other: &GameVersion) -> bool[src]
fn le(&self, other: &GameVersion) -> bool[src]
fn gt(&self, other: &GameVersion) -> bool[src]
fn ge(&self, other: &GameVersion) -> bool[src]
impl StructuralEq for GameVersion[src]
impl StructuralPartialEq for GameVersion[src]
Auto Trait Implementations
impl RefUnwindSafe for GameVersion
impl Send for GameVersion
impl Sync for GameVersion
impl Unpin for GameVersion
impl UnwindSafe for GameVersion
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,