Implement Default
for Min
and Max
This commit is contained in:
parent
89349508dd
commit
d68a138d86
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user