create a new iterator
(array: TypedRunArray<'a, R, V>)
| 56 | { |
| 57 | /// create a new iterator |
| 58 | pub fn new(array: TypedRunArray<'a, R, V>) -> Self { |
| 59 | let current_front_physical = array.run_array().get_start_physical_index(); |
| 60 | let current_back_physical = array.run_array().get_end_physical_index() + 1; |
| 61 | RunArrayIter { |
| 62 | array, |
| 63 | current_front_logical: array.offset(), |
| 64 | current_front_physical, |
| 65 | current_back_logical: array.offset() + array.len(), |
| 66 | current_back_physical, |
| 67 | } |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | impl<'a, R, V> Iterator for RunArrayIter<'a, R, V> |
nothing calls this directly
no test coverage detected