MCPcopy Create free account
hub / github.com/apache/arrow-rs / append_trusted_len_iter

Method append_trusted_len_iter

arrow-buffer/src/builder/mod.rs:324–332  ·  view source on GitHub ↗
(&mut self, iter: impl IntoIterator<Item = T>)

Source from the content-addressed store, hash-verified

322 /// the iterator implement `TrustedLen` once that is stabilized.
323 #[inline]
324 pub unsafe fn append_trusted_len_iter(&mut self, iter: impl IntoIterator<Item = T>) {
325 let iter = iter.into_iter();
326 let len = iter
327 .size_hint()
328 .1
329 .expect("append_trusted_len_iter expects upper bound");
330 self.reserve(len);
331 self.extend(iter);
332 }
333
334 /// Resets this builder and returns an immutable [Buffer].
335 ///

Calls 4

into_iterMethod · 0.45
size_hintMethod · 0.45
reserveMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected