pub enum WrongWayReason {
FacingBackward,
MovingBackward,
FacingAndMovingBackward,
}Expand description
Why the most recent tick looks wrong-way relative to its nearest segment.
Facing means heading alignment below -0.5; moving means signed along-path
speed below -cruise * 0.02. These observations also apply during an intended
reverse: consult DriverStatus::recovery before showing a warning.
See RacingDriver::status for an example.
Variants§
Trait Implementations§
Source§impl Clone for WrongWayReason
impl Clone for WrongWayReason
Source§fn clone(&self) -> WrongWayReason
fn clone(&self) -> WrongWayReason
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 moreSource§impl Debug for WrongWayReason
impl Debug for WrongWayReason
Source§impl PartialEq for WrongWayReason
impl PartialEq for WrongWayReason
impl Copy for WrongWayReason
impl Eq for WrongWayReason
impl StructuralPartialEq for WrongWayReason
Auto Trait Implementations§
impl Freeze for WrongWayReason
impl RefUnwindSafe for WrongWayReason
impl Send for WrongWayReason
impl Sync for WrongWayReason
impl Unpin for WrongWayReason
impl UnwindSafe for WrongWayReason
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