pub enum Flag {
Invalid,
None,
Green,
Blue,
Yellow,
Red,
}
Expand description
Flags shown in formula racing
Flags are an essential tool to communicate the status of a race to the drivers on track. A green flag signals the race start or restart, while a yellow flag warns of hazards on track. The red flag aborts a race or session. The blue flag signals that a faster car is approaching from behind.
Variants§
Trait Implementations§
Source§impl Ord for Flag
impl Ord for Flag
Source§impl PartialOrd for Flag
impl PartialOrd for Flag
impl Copy for Flag
impl Eq for Flag
impl StructuralPartialEq for Flag
Auto Trait Implementations§
impl Freeze for Flag
impl RefUnwindSafe for Flag
impl Send for Flag
impl Sync for Flag
impl Unpin for Flag
impl UnwindSafe for Flag
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