Enum TrackId

Source
#[non_exhaustive]
pub enum TrackId {
Show 34 variants Unknown = -1, AlbertPark = 0, PaulRicard = 1, Shanghai = 2, Sakhir = 3, Catalunya = 4, MonteCarlo = 5, Montreal = 6, Silverstone = 7, Hockenheim = 8, Hungaroring = 9, Spa = 10, Monza = 11, MarinaBay = 12, Suzuka = 13, YasMarina = 14, Cota = 15, Interlagos = 16, RedBullRing = 17, Sochi = 18, MexicoCity = 19, Baku = 20, SakhirShort = 21, SilverstoneShort = 22, CotaShort = 23, SuzukaShort = 24, Hanoi = 25, Zandvoort = 26, Imola = 27, Portimao = 28, Jeddah = 29, Miami = 30, LasVegas = 31, Losail = 32,
}
Expand description

Unique circuit ID. Represents an i8.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Unknown = -1

Unknown circuit.

§

AlbertPark = 0

Australian Grand Prix.

§

PaulRicard = 1

French Grand Prix.

§

Shanghai = 2

Chinese Grand Prix.

§

Sakhir = 3

Bahrain Grand Prix.

§

Catalunya = 4

Spanish Grand Prix.

§

MonteCarlo = 5

Monaco Grand Prix.

§

Montreal = 6

Canadian Grand Prix.

§

Silverstone = 7

British Grand Prix.

§

Hockenheim = 8

German Grand Prix.

§

Hungaroring = 9

Hungarian Grand Prix.

§

Spa = 10

Belgian Grand Prix.

§

Monza = 11

Italian Grand Prix.

§

MarinaBay = 12

Singapore Grand Prix.

§

Suzuka = 13

Japanese Grand Prix.

§

YasMarina = 14

Abu Dhabi Grand Prix.

§

Cota = 15

Circuit of the Americas. United States (Texas) Grand Prix.

§

Interlagos = 16

Brazilian (Sao Paulo) Grand Prix.

§

RedBullRing = 17

Austrian Grand Prix.

§

Sochi = 18

Russian Grand Prix.

§

MexicoCity = 19

Mexican Grand Prix.

§

Baku = 20

Azerbaijan Grand Prix.

§

SakhirShort = 21

Short variant of the Sakhir circuit.

§

SilverstoneShort = 22

Short variant of the Silverstone circuit.

§

CotaShort = 23

Short variant of the Cota circuit.

§

SuzukaShort = 24

Short variant of the Suzuka circuit.

§

Hanoi = 25

Vietnamese Grand Prix.

§

Zandvoort = 26

Dutch Grand Prix.

§

Imola = 27

San Marino Emilia-Romagna Grand Prix.

§

Portimao = 28

Portuguese Grand Prix.

§

Jeddah = 29

Saudi Arabian Grand Prix.

§

Miami = 30

Miami Grand Prix.

§

LasVegas = 31

Las Vegas Grand Prix.

§

Losail = 32

Qatar Grand Prix.

Trait Implementations§

Source§

impl BinRead for TrackId

Source§

type Args<'__binrw_generated_args_lifetime> = ()

The type used for the args parameter of read_args() and read_options(). Read more
Source§

fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>

Read Self from the reader using the given Endian and arguments. Read more
Source§

fn read<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self: ReadEndian, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments. Read more
Source§

fn read_be<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments and assuming big-endian byte order. Read more
Source§

fn read_le<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments and assuming little-endian byte order. Read more
Source§

fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read T from the reader assuming native-endian byte order. Read more
Source§

fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek, Self: ReadEndian,

Read Self from the reader using the given arguments. Read more
Source§

fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read Self from the reader, assuming big-endian byte order, using the given arguments. Read more
Source§

fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read Self from the reader, assuming little-endian byte order, using the given arguments. Read more
Source§

fn read_ne_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read T from the reader, assuming native-endian byte order, using the given arguments. Read more
Source§

impl Clone for TrackId

Source§

fn clone(&self) -> TrackId

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TrackId

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for TrackId

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Hash for TrackId

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for TrackId

Source§

fn cmp(&self, other: &TrackId) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for TrackId

Source§

fn eq(&self, other: &TrackId) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for TrackId

Source§

fn partial_cmp(&self, other: &TrackId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl ReadEndian for TrackId

Source§

const ENDIAN: EndianKind

The endianness of the type.
Source§

impl Serialize for TrackId

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for TrackId

Source§

impl Eq for TrackId

Source§

impl StructuralPartialEq for TrackId

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,