Append a value multiple times to the array. This is the same as `append` but allows to append the same value multiple times without doing multiple lookups. Returns an error if the new index would overflow the key type.
(
&mut self,
value: impl AsRef<T::Native>,
count: usize,
)
| 310 | /// |
| 311 | /// Returns an error if the new index would overflow the key type. |
| 312 | pub fn append_n( |
| 313 | &mut self, |
| 314 | value: impl AsRef<T::Native>, |
| 315 | count: usize, |
| 316 | ) -> Result<K::Native, ArrowError> { |
| 317 | let key = self.get_or_insert_key(value)?; |
| 318 | self.keys_builder.append_value_n(key, count); |
| 319 | Ok(key) |
| 320 | } |
| 321 | |
| 322 | /// Infallibly append a value to this builder |
| 323 | /// |
no test coverage detected