#[non_exhaustive]pub enum VehicleType {
Wheeled,
Tracked,
Motorcycle,
}Expand description
The kinds of vehicle a world can hold.
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.
Wheeled
WheeledVehicle: Jolt’s WheeledVehicleController.
Tracked
TrackedVehicle: Jolt’s TrackedVehicleController.
Motorcycle
Motorcycle: Jolt’s MotorcycleController.
Trait Implementations§
Source§impl Clone for VehicleType
impl Clone for VehicleType
impl Copy for VehicleType
Source§impl Debug for VehicleType
impl Debug for VehicleType
impl Eq for VehicleType
Source§impl Hash for VehicleType
impl Hash for VehicleType
Source§impl Ord for VehicleType
impl Ord for VehicleType
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for VehicleType
impl PartialEq for VehicleType
Source§impl PartialOrd for VehicleType
impl PartialOrd for VehicleType
impl StructuralPartialEq for VehicleType
Auto Trait Implementations§
impl Freeze for VehicleType
impl RefUnwindSafe for VehicleType
impl Send for VehicleType
impl Sync for VehicleType
impl Unpin for VehicleType
impl UnsafeUnpin for VehicleType
impl UnwindSafe for VehicleType
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