#[non_exhaustive]pub enum VisualTyreCompound {
Show 13 variants
Unknown = 0,
F1Soft = 16,
F1Medium = 17,
F1Hard = 18,
F1Inter = 7,
F1Wet = 8,
ClassicDry = 9,
ClassicWet = 10,
F2SuperSoft = 19,
F2Soft = 20,
F2Medium = 21,
F2Hard = 22,
F2Wet = 15,
}Expand description
Visual indicator of a tyre compound’s type in a given session.
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
F1Soft = 16
F1Medium = 17
F1Hard = 18
F1Inter = 7
F1Wet = 8
ClassicDry = 9
ClassicWet = 10
F2SuperSoft = 19
F2Soft = 20
F2Medium = 21
F2Hard = 22
F2Wet = 15
Trait Implementations§
Source§impl BinRead for VisualTyreCompound
impl BinRead for VisualTyreCompound
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 VisualTyreCompound
impl Clone for VisualTyreCompound
Source§fn clone(&self) -> VisualTyreCompound
fn clone(&self) -> VisualTyreCompound
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 VisualTyreCompound
impl Debug for VisualTyreCompound
Source§impl<'de> Deserialize<'de> for VisualTyreCompound
impl<'de> Deserialize<'de> for VisualTyreCompound
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 VisualTyreCompound
impl Hash for VisualTyreCompound
Source§impl Ord for VisualTyreCompound
impl Ord for VisualTyreCompound
Source§fn cmp(&self, other: &VisualTyreCompound) -> Ordering
fn cmp(&self, other: &VisualTyreCompound) -> 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 VisualTyreCompound
impl PartialEq for VisualTyreCompound
Source§impl PartialOrd for VisualTyreCompound
impl PartialOrd for VisualTyreCompound
Source§impl ReadEndian for VisualTyreCompound
impl ReadEndian for VisualTyreCompound
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Source§impl Serialize for VisualTyreCompound
impl Serialize for VisualTyreCompound
impl Copy for VisualTyreCompound
impl Eq for VisualTyreCompound
impl StructuralPartialEq for VisualTyreCompound
Auto Trait Implementations§
impl Freeze for VisualTyreCompound
impl RefUnwindSafe for VisualTyreCompound
impl Send for VisualTyreCompound
impl Sync for VisualTyreCompound
impl Unpin for VisualTyreCompound
impl UnwindSafe for VisualTyreCompound
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