Returns an iterator of all unique directed axes and references to the corresponding stored value
(&self)
| 387 | |
| 388 | /// Returns an iterator of all unique directed axes and references to the corresponding stored value |
| 389 | pub fn iter(&self) -> impl Iterator<Item = (&DirectedAxis, &T)> { |
| 390 | DirectedAxis::all_possible().iter().zip(self.data.iter()) |
| 391 | } |
| 392 | |
| 393 | /// Returns an iterator of all unique directed axes and mutable references to the corresponding stored value |
| 394 | pub fn iter_mut(&mut self) -> impl Iterator<Item = (&DirectedAxis, &mut T)> { |
no outgoing calls