@@ -88,14 +88,10 @@ pub struct BigUint {
88
88
}
89
89
90
90
impl Eq for BigUint {
91
-
92
91
fn eq ( & self , other : & BigUint ) -> bool { self . equals ( other) }
93
-
94
- fn ne ( & self , other : & BigUint ) -> bool { !self . equals ( other) }
95
92
}
96
93
97
94
impl TotalEq for BigUint {
98
-
99
95
fn equals ( & self , other : & BigUint ) -> bool {
100
96
match self . cmp ( other) { Equal => true , _ => false }
101
97
}
@@ -106,18 +102,6 @@ impl Ord for BigUint {
106
102
fn lt ( & self , other : & BigUint ) -> bool {
107
103
match self . cmp ( other) { Less => true , _ => false }
108
104
}
109
-
110
- fn le ( & self , other : & BigUint ) -> bool {
111
- match self . cmp ( other) { Less | Equal => true , _ => false }
112
- }
113
-
114
- fn ge ( & self , other : & BigUint ) -> bool {
115
- match self . cmp ( other) { Greater | Equal => true , _ => false }
116
- }
117
-
118
- fn gt ( & self , other : & BigUint ) -> bool {
119
- match self . cmp ( other) { Greater => true , _ => false }
120
- }
121
105
}
122
106
123
107
impl TotalOrd for BigUint {
@@ -710,18 +694,6 @@ impl Ord for Sign {
710
694
fn lt ( & self , other : & Sign ) -> bool {
711
695
match self . cmp ( other) { Less => true , _ => false }
712
696
}
713
-
714
- fn le ( & self , other : & Sign ) -> bool {
715
- match self . cmp ( other) { Less | Equal => true , _ => false }
716
- }
717
-
718
- fn ge ( & self , other : & Sign ) -> bool {
719
- match self . cmp ( other) { Greater | Equal => true , _ => false }
720
- }
721
-
722
- fn gt ( & self , other : & Sign ) -> bool {
723
- match self . cmp ( other) { Greater => true , _ => false }
724
- }
725
697
}
726
698
727
699
impl TotalEq for Sign {
@@ -762,8 +734,6 @@ pub struct BigInt {
762
734
impl Eq for BigInt {
763
735
764
736
fn eq ( & self , other : & BigInt ) -> bool { self . equals ( other) }
765
-
766
- fn ne ( & self , other : & BigInt ) -> bool { !self . equals ( other) }
767
737
}
768
738
769
739
impl TotalEq for BigInt {
@@ -778,18 +748,6 @@ impl Ord for BigInt {
778
748
fn lt ( & self , other : & BigInt ) -> bool {
779
749
match self . cmp ( other) { Less => true , _ => false }
780
750
}
781
-
782
- fn le ( & self , other : & BigInt ) -> bool {
783
- match self . cmp ( other) { Less | Equal => true , _ => false }
784
- }
785
-
786
- fn ge ( & self , other : & BigInt ) -> bool {
787
- match self . cmp ( other) { Greater | Equal => true , _ => false }
788
- }
789
-
790
- fn gt ( & self , other : & BigInt ) -> bool {
791
- match self . cmp ( other) { Greater => true , _ => false }
792
- }
793
751
}
794
752
795
753
impl TotalOrd for BigInt {
0 commit comments