pub enum SignalPhase {
Green,
Red,
}Expand description
The current phase of a traffic signal.
Variants§
Trait Implementations§
Source§impl Clone for SignalPhase
impl Clone for SignalPhase
Source§fn clone(&self) -> SignalPhase
fn clone(&self) -> SignalPhase
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 SignalPhase
impl Debug for SignalPhase
Source§impl Hash for SignalPhase
impl Hash for SignalPhase
Source§impl PartialEq for SignalPhase
impl PartialEq for SignalPhase
impl Copy for SignalPhase
impl Eq for SignalPhase
impl StructuralPartialEq for SignalPhase
Auto Trait Implementations§
impl Freeze for SignalPhase
impl RefUnwindSafe for SignalPhase
impl Send for SignalPhase
impl Sync for SignalPhase
impl Unpin for SignalPhase
impl UnsafeUnpin for SignalPhase
impl UnwindSafe for SignalPhase
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