(&self, logical_index: usize)
| 759 | type Item = <&'a V as ArrayAccessor>::Item; |
| 760 | |
| 761 | fn value(&self, logical_index: usize) -> Self::Item { |
| 762 | assert!( |
| 763 | logical_index < self.len(), |
| 764 | "Trying to access an element at index {} from a TypedRunArray of length {}", |
| 765 | logical_index, |
| 766 | self.len() |
| 767 | ); |
| 768 | unsafe { self.value_unchecked(logical_index) } |
| 769 | } |
| 770 | |
| 771 | unsafe fn value_unchecked(&self, logical_index: usize) -> Self::Item { |
| 772 | let physical_index = self.run_array.get_physical_index(logical_index); |