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

Method from_iter

arrow-buffer/src/buffer/boolean.rs:797–803  ·  view source on GitHub ↗
(iter: T)

Source from the content-addressed store, hash-verified

795
796impl FromIterator<bool> for BooleanBuffer {
797 fn from_iter<T: IntoIterator<Item = bool>>(iter: T) -> Self {
798 let iter = iter.into_iter();
799 let (hint, _) = iter.size_hint();
800 let mut builder = BooleanBufferBuilder::new(hint);
801 iter.for_each(|b| builder.append(b));
802 builder.finish()
803 }
804}
805
806#[cfg(test)]

Callers

nothing calls this directly

Calls 4

into_iterMethod · 0.45
size_hintMethod · 0.45
appendMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected