#[non_exhaustive]pub enum Nationality {
Show 91 variants
Unknown = 0,
American = 1,
Argentinian = 2,
Australian = 3,
Austrian = 4,
Azerbaijani = 5,
Bahraini = 6,
Belgian = 7,
Bolivian = 8,
Brazilian = 9,
British = 10,
Bulgarian = 11,
Cameroonian = 12,
Canadian = 13,
Chilean = 14,
Chinese = 15,
Colombian = 16,
CostaRican = 17,
Croatian = 18,
Cypriot = 19,
Czech = 20,
Danish = 21,
Dutch = 22,
Ecuadorian = 23,
English = 24,
Emirian = 25,
Estonian = 26,
Finnish = 27,
French = 28,
German = 29,
Ghanaian = 30,
Greek = 31,
Guatemalan = 32,
Honduran = 33,
HongKonger = 34,
Hungarian = 35,
Icelander = 36,
Indian = 37,
Indonesian = 38,
Irish = 39,
Israeli = 40,
Italian = 41,
Jamaican = 42,
Japanese = 43,
Jordanian = 44,
Kuwaiti = 45,
Latvian = 46,
Lebanese = 47,
Lithuanian = 48,
Luxembourger = 49,
Malaysian = 50,
Maltese = 51,
Mexican = 52,
Monegasque = 53,
NewZealander = 54,
Nicaraguan = 55,
NorthernIrish = 56,
Norwegian = 57,
Omani = 58,
Pakistani = 59,
Panamanian = 60,
Paraguayan = 61,
Peruvian = 62,
Polish = 63,
Portuguese = 64,
Qatari = 65,
Romanian = 66,
Russian = 67,
Salvadoran = 68,
Saudi = 69,
Scottish = 70,
Serbian = 71,
Singaporean = 72,
Slovakian = 73,
Slovenian = 74,
SouthKorean = 75,
SouthAfrican = 76,
Spanish = 77,
Swedish = 78,
Swiss = 79,
Thai = 80,
Turkish = 81,
Uruguayan = 82,
Ukrainian = 83,
Venezuelan = 84,
Welsh = 85,
Barbadian = 86,
Vietnamese = 87,
Algerian = 88,
Bosnian = 89,
Filipino = 90,
}Expand description
Unique identifier of a driver’s nationality. Represents a u8.
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 = 0
American = 1
Argentinian = 2
Australian = 3
Austrian = 4
Azerbaijani = 5
Bahraini = 6
Belgian = 7
Bolivian = 8
Brazilian = 9
British = 10
Bulgarian = 11
Cameroonian = 12
Canadian = 13
Chilean = 14
Chinese = 15
Colombian = 16
CostaRican = 17
Croatian = 18
Cypriot = 19
Czech = 20
Danish = 21
Dutch = 22
Ecuadorian = 23
English = 24
Emirian = 25
Estonian = 26
Finnish = 27
French = 28
German = 29
Ghanaian = 30
Greek = 31
Guatemalan = 32
Honduran = 33
HongKonger = 34
Hungarian = 35
Icelander = 36
Indian = 37
Indonesian = 38
Irish = 39
Israeli = 40
Italian = 41
Jamaican = 42
Japanese = 43
Jordanian = 44
Kuwaiti = 45
Latvian = 46
Lebanese = 47
Lithuanian = 48
Luxembourger = 49
Malaysian = 50
Maltese = 51
Mexican = 52
Monegasque = 53
NewZealander = 54
Nicaraguan = 55
NorthernIrish = 56
Norwegian = 57
Omani = 58
Pakistani = 59
Panamanian = 60
Paraguayan = 61
Peruvian = 62
Polish = 63
Portuguese = 64
Qatari = 65
Romanian = 66
Russian = 67
Salvadoran = 68
Saudi = 69
Scottish = 70
Serbian = 71
Singaporean = 72
Slovakian = 73
Slovenian = 74
SouthKorean = 75
SouthAfrican = 76
Spanish = 77
Swedish = 78
Swiss = 79
Thai = 80
Turkish = 81
Uruguayan = 82
Ukrainian = 83
Venezuelan = 84
Welsh = 85
Barbadian = 86
Vietnamese = 87
Algerian = 88
Bosnian = 89
Filipino = 90
Trait Implementations§
Source§impl BinRead for Nationality
impl BinRead for Nationality
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>
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>
Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments. Read moreSource§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader using the given arguments. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl Clone for Nationality
impl Clone for Nationality
Source§fn clone(&self) -> Nationality
fn clone(&self) -> Nationality
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 Nationality
impl Debug for Nationality
Source§impl<'de> Deserialize<'de> for Nationality
impl<'de> Deserialize<'de> for Nationality
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 Nationality
impl Hash for Nationality
Source§impl Ord for Nationality
impl Ord for Nationality
Source§fn cmp(&self, other: &Nationality) -> Ordering
fn cmp(&self, other: &Nationality) -> 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 Nationality
impl PartialEq for Nationality
Source§impl PartialOrd for Nationality
impl PartialOrd for Nationality
Source§impl ReadEndian for Nationality
impl ReadEndian for Nationality
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Source§impl Serialize for Nationality
impl Serialize for Nationality
impl Copy for Nationality
impl Eq for Nationality
impl StructuralPartialEq for Nationality
Auto Trait Implementations§
impl Freeze for Nationality
impl RefUnwindSafe for Nationality
impl Send for Nationality
impl Sync for Nationality
impl Unpin for Nationality
impl UnwindSafe for Nationality
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