diff --git a/src/ops.rs b/src/ops.rs index 0e21d5f..0f01b78 100644 --- a/src/ops.rs +++ b/src/ops.rs @@ -704,6 +704,34 @@ impl PartialEq for &Numeric { } } +impl PartialEq for &Numeric { + #[inline] + fn eq(&self, other: &Numeric) -> bool { + (*self).eq(other) + } +} + +impl PartialEq<&Numeric> for Numeric { + #[inline] + fn eq(&self, other: &&Numeric) -> bool { + self.eq(*other) + } +} + +impl PartialEq for &NumericBuf { + #[inline] + fn eq(&self, other: &NumericBuf) -> bool { + (*self).eq(other) + } +} + +impl PartialEq<&NumericBuf> for NumericBuf { + #[inline] + fn eq(&self, other: &&NumericBuf) -> bool { + self.eq(*other) + } +} + impl PartialOrd for NumericBuf { #[inline] fn partial_cmp(&self, other: &Numeric) -> Option { @@ -732,6 +760,34 @@ impl PartialOrd for &Numeric { } } +impl PartialOrd for &Numeric { + #[inline] + fn partial_cmp(&self, other: &Numeric) -> Option { + (*self).partial_cmp(other) + } +} + +impl PartialOrd<&Numeric> for Numeric { + #[inline] + fn partial_cmp(&self, other: &&Numeric) -> Option { + self.partial_cmp(*other) + } +} + +impl PartialOrd for &NumericBuf { + #[inline] + fn partial_cmp(&self, other: &NumericBuf) -> Option { + (*self).partial_cmp(other) + } +} + +impl PartialOrd<&NumericBuf> for NumericBuf { + #[inline] + fn partial_cmp(&self, other: &&NumericBuf) -> Option { + self.partial_cmp(*other) + } +} + #[cfg(test)] mod tests { use super::*;