Returns mutable references to many elements at once. Returns an error if an element does not exist, or if the same key was passed more than once.
(
&mut self,
indices: [K; N],
)
| 195 | /// Returns an error if an element does not exist, or if the same key was passed more than |
| 196 | /// once. |
| 197 | pub fn get_disjoint_mut<const N: usize>( |
| 198 | &mut self, |
| 199 | indices: [K; N], |
| 200 | ) -> Result<[&mut V; N], slice::GetDisjointMutError> { |
| 201 | self.elems.get_disjoint_mut(indices.map(|k| k.index())) |
| 202 | } |
| 203 | |
| 204 | /// Performs a binary search on the values with a key extraction function. |
| 205 | /// |