pub struct CarControls {
pub throttle: f64,
pub steering: f64,
pub brake: f64,
pub handbrake: bool,
pub is_manual_gear: bool,
pub manual_gear: u64,
pub gear_immediate: bool,
}Expand description
———— /// CAR CONTROLS /// ———— ///
Fields§
§throttle: f64§steering: f64§brake: f64§handbrake: bool§is_manual_gear: bool§manual_gear: u64§gear_immediate: boolTrait Implementations§
Source§impl Default for CarControls
impl Default for CarControls
Source§impl From<CarControls> for Value
impl From<CarControls> for Value
Source§fn from(value: CarControls) -> Self
fn from(value: CarControls) -> Self
Converts to this type from the input type.
Source§impl Iterable for CarControls
impl Iterable for CarControls
Auto Trait Implementations§
impl Freeze for CarControls
impl RefUnwindSafe for CarControls
impl Send for CarControls
impl Sync for CarControls
impl Unpin for CarControls
impl UnsafeUnpin for CarControls
impl UnwindSafe for CarControls
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