Struct entmet_lib::entities::entity::AbstractVehicle
source · pub struct AbstractVehicle {
pub shaking_power: i32,
pub shaking_direction: i32,
pub shaking_multiplier: f32,
/* private fields */
}Expand description
An Interface to store vehicle data
Fields§
§shaking_power: i32The amount of shaking of the vehicle
shaking_direction: i32The direction of the shaking
shaking_multiplier: f32The multiplier of the shaking
Trait Implementations§
source§impl Default for AbstractVehicle
impl Default for AbstractVehicle
source§impl Deref for AbstractVehicle
impl Deref for AbstractVehicle
source§impl DerefMut for AbstractVehicle
impl DerefMut for AbstractVehicle
source§impl PartialEq for AbstractVehicle
impl PartialEq for AbstractVehicle
source§fn eq(&self, other: &AbstractVehicle) -> bool
fn eq(&self, other: &AbstractVehicle) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AbstractVehicle
Auto Trait Implementations§
impl Freeze for AbstractVehicle
impl RefUnwindSafe for AbstractVehicle
impl Send for AbstractVehicle
impl Sync for AbstractVehicle
impl Unpin for AbstractVehicle
impl UnwindSafe for AbstractVehicle
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