pub fn parking_lane_availability(
        &self,
        now: Time,
        l: LaneID,
        capacity: usize,
    ) -> Vec<(Time, usize)> {
        if let Some(changes) = self.parking_lane_changes.get(&l) {
            Analytics::parking_spot_availability(now, changes, capacity)
        } else {
            vec![(Time::START_OF_DAY, capacity), (now, capacity)]
        }
    }
// Returns the free spots over time
Returns the free spots over time
Returns the free spots over time
pub fn parking_lane_availability(
        &self,
        now: Time,
        l: LaneID,
        capacity: usize,
    ) -> Vec<(Time, usize)> {
        if let Some(changes) = self.parking_lane_changes.get(&l) {
            Analytics::parking_spot_availability(now, changes, capacity)
        } else {
            vec![(Time::START_OF_DAY, capacity), (now, capacity)]
        }
    }
pub fn parking_lane_availability ( & self , now : Time , l : LaneID , capacity : usize , ) -> Vec < ( Time , usize ) > { if let Some ( changes ) = self . parking_lane_changes . get ( & l ) { Analytics :: parking_spot_availability ( now , changes , capacity ) } else { vec ! [ ( Time START_OF_DAY capacity ) ( now capacity ) ] } }
Returns the free spots over time
Returns the free spots over time
&self
now
Time
l
LaneID
capacity
usize