diff --git a/fixed_wide_vectors/src/macros/mod.rs b/fixed_wide_vectors/src/macros/mod.rs index 0d899e2..caedc19 100644 --- a/fixed_wide_vectors/src/macros/mod.rs +++ b/fixed_wide_vectors/src/macros/mod.rs @@ -166,6 +166,19 @@ macro_rules! impl_vector { } } + impl $struct { + pub fn min(self, rhs: Self) -> $struct { + $struct{ + $( $field: self.$field.min(rhs.$field) ), + + } + } + pub fn max(self, rhs: Self) -> $struct { + $struct{ + $( $field: self.$field.max(rhs.$field) ), + + } + } + } + impl> core::ops::Neg for $struct { type Output = Self;