Skip to main content

tally

Function tally 

Source
pub(super) fn tally(
    rooms: Vec<PrevWalkRoom>,
    ((room_id), pass): ((&'_ RoomId, u64, &'_ EventId), (u8, u64, u64, u8, u64, u64, &'_ str)),
) -> Vec<PrevWalkRoom>
Expand description

Fold one row into the rooms read so far.

Rows arrive grouped by room, so a row either extends the last room or starts the next.