pub enum Gear {
Reverse = -1,
Neutral = 0,
First = 1,
Second = 2,
Third = 3,
Fourth = 4,
Fifth = 5,
Sixth = 6,
Seventh = 7,
Eighth = 8,
}
Expand description
Gears of a Formula One car
Variants§
Reverse = -1
Neutral = 0
First = 1
Second = 2
Third = 3
Fourth = 4
Fifth = 5
Sixth = 6
Seventh = 7
Eighth = 8
Trait Implementations§
Source§impl Ord for Gear
impl Ord for Gear
Source§impl PartialOrd for Gear
impl PartialOrd for Gear
impl Copy for Gear
impl Eq for Gear
impl StructuralPartialEq for Gear
Auto Trait Implementations§
impl Freeze for Gear
impl RefUnwindSafe for Gear
impl Send for Gear
impl Sync for Gear
impl Unpin for Gear
impl UnwindSafe for Gear
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