Function okapi::merge::merge_option

source ·
pub fn merge_option<T: Clone>(s1: &mut Option<T>, s2: &Option<T>)
Expand description

Merge Option<T>/&Option<T>:

  • If one is None: Use other
  • Otherwise: Use first value