rinex 0.22.0

RINEX file parsing, analysis and production
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::{navigation::Record, prelude::qc::MergeError};

pub fn merge_mut(rec: &mut Record, rhs: &Record) -> Result<(), MergeError> {
    for (k, v) in rhs.iter() {
        if rec.get(&k).is_none() {
            rec.insert(k.clone(), v.clone());
        }
    }
    Ok(())
}