Trait sp3::Merge

source ·
pub trait Merge {
    // Required methods
    fn merge(&self, rhs: &Self) -> Result<Self, MergeError>
       where Self: Sized;
    fn merge_mut(&mut self, rhs: &Self) -> Result<(), MergeError>
       where Self: Sized;
}

Required Methods§

source

fn merge(&self, rhs: &Self) -> Result<Self, MergeError>where Self: Sized,

Merge two SP3 files together: this introduces need Epoch and new data into self. We tolerate different sample rate, in this case self.epoch_interval becomes the lowest sample rate (pessimistic). File version is adjusted to newest revision.

source

fn merge_mut(&mut self, rhs: &Self) -> Result<(), MergeError>where Self: Sized,

Implementors§