Implement Default for Min and Max

This commit is contained in:
Vinzent Steinberg 2017-05-30 10:39:26 +02:00
parent 89349508dd
commit d68a138d86

View File

@ -77,6 +77,12 @@ impl Min {
}
}
impl core::default::Default for Min {
fn default() -> Min {
Min::new()
}
}
impl core::iter::FromIterator<f64> for Min {
fn from_iter<T>(iter: T) -> Min
where T: IntoIterator<Item=f64>
@ -154,6 +160,12 @@ impl Max {
}
}
impl core::default::Default for Max {
fn default() -> Max {
Max::new()
}
}
impl core::iter::FromIterator<f64> for Max {
fn from_iter<T>(iter: T) -> Max
where T: IntoIterator<Item=f64>