MCPcopy Create free account
hub / github.com/docknetwork/crypto / extend

Method extend

utils/src/owned_pairs.rs:125–130  ·  view source on GitHub ↗
(&mut self, iter: T)

Source from the content-addressed store, hash-verified

123
124impl<Left, Right> Extend<(Left, Right)> for OwnedPairs<Left, Right> {
125 fn extend<T: IntoIterator<Item = (Left, Right)>>(&mut self, iter: T) {
126 let (mut left, mut right) = iter.into_iter().unzip();
127
128 self.left.append(&mut left);
129 self.right.append(&mut right);
130 }
131}
132
133#[cfg(feature = "parallel")]

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
into_iterMethod · 0.45

Tested by

no test coverage detected