[−][src]Struct f1_api::packet::setup::CarSetup
Setup of a car
The setup of a car in the F1 games consists of a set of parameters that players can adjust before leaving the garage.
Methods
impl CarSetup
[src]
pub fn new(
front_wing: u8,
rear_wing: u8,
on_throttle: u8,
off_throttle: u8,
front_camber: f32,
rear_camber: f32,
front_toe: f32,
rear_toe: f32,
front_suspension: u8,
rear_suspension: u8,
front_anti_roll_bar: u8,
rear_anti_roll_bar: u8,
front_suspension_height: u8,
rear_suspension_height: u8,
brake_pressure: u8,
brake_bias: u8,
front_tyre_pressure: f32,
rear_tyre_pressure: f32,
ballast: u8,
fuel_load: f32
) -> Self
[src]
front_wing: u8,
rear_wing: u8,
on_throttle: u8,
off_throttle: u8,
front_camber: f32,
rear_camber: f32,
front_toe: f32,
rear_toe: f32,
front_suspension: u8,
rear_suspension: u8,
front_anti_roll_bar: u8,
rear_anti_roll_bar: u8,
front_suspension_height: u8,
rear_suspension_height: u8,
brake_pressure: u8,
brake_bias: u8,
front_tyre_pressure: f32,
rear_tyre_pressure: f32,
ballast: u8,
fuel_load: f32
) -> Self
Constructs a new CarSetup
.
impl CarSetup
[src]
pub fn front_wing(&self) -> u8
[src]
Returns the setting for the front wing aero.
pub fn rear_wing(&self) -> u8
[src]
Returns the setting for the rear wing aero.
pub fn on_throttle(&self) -> u8
[src]
Returns the differential adjustment on throttle as a percentage.
pub fn off_throttle(&self) -> u8
[src]
Returns the differential adjustment off throttle as a percentage.
pub fn front_camber(&self) -> f32
[src]
Returns the setting for the front camber angle.
pub fn rear_camber(&self) -> f32
[src]
Returns the setting for the rear camber angle.
pub fn front_toe(&self) -> f32
[src]
Returns the setting for the front toe angle.
pub fn rear_toe(&self) -> f32
[src]
Returns the setting for the rear toe angle.
pub fn front_suspension(&self) -> u8
[src]
Returns the front suspension setting.
pub fn rear_suspension(&self) -> u8
[src]
Returns the rear suspension setting.
pub fn front_anti_roll_bar(&self) -> u8
[src]
Returns the setting for the front anti-roll bar.
pub fn rear_anti_roll_bar(&self) -> u8
[src]
Returns the setting for the rear anti-roll bar.
pub fn front_suspension_height(&self) -> u8
[src]
Returns the setting for the front ride height.
pub fn rear_suspension_height(&self) -> u8
[src]
Returns the setting for the rear right height.
pub fn brake_pressure(&self) -> u8
[src]
Returns the setting for the brake pressure as a percentage.
pub fn brake_bias(&self) -> u8
[src]
Returns the setting for the brake bias as a percentage.
pub fn front_tyre_pressure(&self) -> f32
[src]
Returns the setting for the front tyre pressure in psi.
pub fn rear_tyre_pressure(&self) -> f32
[src]
Returns the setting for the rear tyre pressure in psi.
pub fn ballast(&self) -> u8
[src]
Returns the setting for additional ballast.
pub fn fuel_load(&self) -> f32
[src]
Returns the setting for the fuel load.
Trait Implementations
impl Clone for CarSetup
[src]
impl Copy for CarSetup
[src]
impl Debug for CarSetup
[src]
impl Default for CarSetup
[src]
impl PartialEq<CarSetup> for CarSetup
[src]
impl PartialOrd<CarSetup> for CarSetup
[src]
fn partial_cmp(&self, other: &CarSetup) -> Option<Ordering>
[src]
fn lt(&self, other: &CarSetup) -> bool
[src]
fn le(&self, other: &CarSetup) -> bool
[src]
fn gt(&self, other: &CarSetup) -> bool
[src]
fn ge(&self, other: &CarSetup) -> bool
[src]
impl StructuralPartialEq for CarSetup
[src]
Auto Trait Implementations
impl RefUnwindSafe for CarSetup
impl Send for CarSetup
impl Sync for CarSetup
impl Unpin for CarSetup
impl UnwindSafe for CarSetup
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, 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>,