fn search_departures(&mut self, at: DateTime<Local>) {
        let midnight = at.date().and_hms(0, 0, 0);

        for stop_time in self.departure_stop_times.iter() {
            let departure = midnight + stop_time.departure_time.duration();
            if departure > at {
                let trip_id = stop_time.trip_id.clone();
                self.trip_ids.insert(trip_id, departure);
            }
        }
    }
// Get trips from origin stop candidates starting after the given time
Get trips from origin stop candidates starting after the given time
Get trips from origin stop candidates starting after the given time
fn search_departures(&mut self, at: DateTime<Local>) {
        let midnight = at.date().and_hms(0, 0, 0);
        for stop_time in self.departure_stop_times.iter() {
            let departure = midnight + stop_time.departure_time.duration();
            if departure > at {
                let trip_id = stop_time.trip_id.clone();
                self.trip_ids.insert(trip_id, departure);
            }
        }
    }
fn search_departures ( & mut self , at : DateTime < Local > ) { let midnight = at . date ( ) . and_hms ( 0 , 0 , 0 ) ; for stop_time in self . departure_stop_times . iter ( ) { let departure = midnight + stop_time . departure_time . duration ( ) ; if departure > at { let trip_id = stop_time . trip_id . clone ( ) ; self . trip_ids . insert ( trip_id , departure ) ; } } }
Get trips from origin stop candidates starting after the given time
Get trips from origin stop candidates starting after the given time
&mut self
at
DateTime<Local>
&mut self
at
DateTime<Local>