(&self)
| 3039 | } |
| 3040 | |
| 3041 | pub fn iter(&self) -> impl Iterator<Item = (CommentObjectId, Option<usize>, &str)> { |
| 3042 | self.map |
| 3043 | .iter() |
| 3044 | .map(|(id, comments)| { |
| 3045 | comments |
| 3046 | .iter() |
| 3047 | .map(|(pos, comment)| (*id, *pos, comment.as_str())) |
| 3048 | }) |
| 3049 | .flatten() |
| 3050 | } |
| 3051 | |
| 3052 | pub fn get_object_comments( |
| 3053 | &self, |