pub enum VehiclePhase {
Idle,
InTransit,
Dwelling,
Finished,
}Expand description
Operating state of a transit vehicle.
Variants§
Idle
Depot, not yet dispatched.
InTransit
En route between two stops.
Dwelling
Dwelling at a stop.
Finished
Completed its route for the day.
Trait Implementations§
Source§impl Clone for VehiclePhase
impl Clone for VehiclePhase
Source§fn clone(&self) -> VehiclePhase
fn clone(&self) -> VehiclePhase
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 VehiclePhase
impl Debug for VehiclePhase
Source§impl PartialEq for VehiclePhase
impl PartialEq for VehiclePhase
impl Copy for VehiclePhase
impl Eq for VehiclePhase
impl StructuralPartialEq for VehiclePhase
Auto Trait Implementations§
impl Freeze for VehiclePhase
impl RefUnwindSafe for VehiclePhase
impl Send for VehiclePhase
impl Sync for VehiclePhase
impl Unpin for VehiclePhase
impl UnsafeUnpin for VehiclePhase
impl UnwindSafe for VehiclePhase
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