Skip to main content

update_stat

Function update_stat 

Source
fn update_stat<T: ParquetValueType, F>(val: &T, cur: &mut T, should_update: F)
where F: Fn(&T) -> bool,
Expand description

Perform a conditional update of cur

Calls should_update with the value of cur, and updates cur to Some(val) if it returns true. cur must not be None or this will panic.