Skip to main content

board_with_policy

Function board_with_policy 

Source
pub fn board_with_policy<P>(
    queue: &mut Boarding,
    vehicle: &mut TransitVehicle,
    served_stops: &[u64],
    passenger_destinations: &mut Vec<u64>,
    policy: &P,
) -> BoardingResult
where P: BoardingPolicy,
Expand description

Apply a boarding policy to a queue and vehicle.