Function replace_if_not_null

Source
fn replace_if_not_null(row: &mut Vec<Option<ScalarImpl>>, replacement: OwnedRow)
Expand description

Replace columns in an existing row with the corresponding columns in a replacement row, if the column value in the replacement row is not null.

§Example

let mut row = vec![Some(1), None, Some(3)];
let replacement = vec![Some(10), Some(20), None];
replace_if_not_null(&mut row, replacement);

After the call, row will be [Some(10), Some(20), Some(3)].