pub struct VehicleAttributes {
pub width: f64,
pub length: f64,
pub wheel_base: f64,
pub max_acc: f64,
pub comf_dec: f64,
}
Expand description
The attributes of a simulated vehicle.
Fields§
§width: f64
The vehicle width in m.
length: f64
The vehicle length in m.
wheel_base: f64
Distance from vehicle’s centre to centre of wheel axle.
max_acc: f64
The maximum acceleration of the vehicle, in m/s^2.
comf_dec: f64
The comfortable deceleration of the vehicle, a negative number in m/s^2.
Trait Implementations§
Source§impl Clone for VehicleAttributes
impl Clone for VehicleAttributes
Source§fn clone(&self) -> VehicleAttributes
fn clone(&self) -> VehicleAttributes
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 moreimpl Copy for VehicleAttributes
Auto Trait Implementations§
impl Freeze for VehicleAttributes
impl RefUnwindSafe for VehicleAttributes
impl Send for VehicleAttributes
impl Sync for VehicleAttributes
impl Unpin for VehicleAttributes
impl UnwindSafe for VehicleAttributes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more