pub struct DataMerger { /* private fields */ }Implementations§
Source§impl DataMerger
impl DataMerger
pub fn new() -> Self
pub fn with_allow_incomplete(allow_incomplete: bool) -> Self
Sourcepub fn merge_temperature_data(
&self,
temperature_data: &TemperatureData,
) -> Result<Vec<ConsolidatedRecord>>
pub fn merge_temperature_data( &self, temperature_data: &TemperatureData, ) -> Result<Vec<ConsolidatedRecord>>
Merge temperature data into consolidated records
Sourcepub fn merge_station_data(
&self,
station: &StationMetadata,
min_temps: Vec<TemperatureRecord>,
max_temps: Vec<TemperatureRecord>,
avg_temps: Vec<TemperatureRecord>,
) -> Result<Vec<ConsolidatedRecord>>
pub fn merge_station_data( &self, station: &StationMetadata, min_temps: Vec<TemperatureRecord>, max_temps: Vec<TemperatureRecord>, avg_temps: Vec<TemperatureRecord>, ) -> Result<Vec<ConsolidatedRecord>>
Merge data for a specific station
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataMerger
impl RefUnwindSafe for DataMerger
impl Send for DataMerger
impl Sync for DataMerger
impl Unpin for DataMerger
impl UnwindSafe for DataMerger
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more