(&self, group_index: usize)
| 61 | |
| 62 | impl Marks { |
| 63 | pub fn get(&self, group_index: usize) -> (Optioned<usize>, Optioned<usize>) { |
| 64 | let marks_index = 2 * group_index; |
| 65 | if marks_index + 1 < self.marks.len() { |
| 66 | (self.marks[marks_index], self.marks[marks_index + 1]) |
| 67 | } else { |
| 68 | (Optioned::none(), Optioned::none()) |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | pub const fn last_index(&self) -> isize { |
| 73 | self.last_index |