MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / try_extend

Method try_extend

src/repr/src/row.rs:2244–2253  ·  view source on GitHub ↗
(&mut self, iter: I)

Source from the content-addressed store, hash-verified

2242 /// be incomplete, but it will be safe to read datums from it.
2243 #[inline]
2244 pub fn try_extend<'a, I, E, D>(&mut self, iter: I) -> Result<(), E>
2245 where
2246 I: IntoIterator<Item = Result<D, E>>,
2247 D: Borrow<Datum<'a>>,
2248 {
2249 for datum in iter {
2250 push_datum(&mut self.row.data, *datum?.borrow());
2251 }
2252 Ok(())
2253 }
2254
2255 /// Appends the datums of an entire `Row`.
2256 pub fn extend_by_row(&mut self, row: &Row) {

Callers 4

try_packMethod · 0.80
arrange_collectionMethod · 0.80
build_halfjoinFunction · 0.80
differential_joinMethod · 0.80

Calls 2

push_datumFunction · 0.85
borrowMethod · 0.45

Tested by

no test coverage detected