File tree Expand file tree Collapse file tree
crates/wasmparser/src/collections Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -633,3 +633,24 @@ where
633633 } )
634634 }
635635}
636+
637+ impl < K , V > PartialEq for IndexMap < K , V >
638+ where
639+ K : PartialEq + Hash + Ord ,
640+ V : PartialEq ,
641+ {
642+ fn eq ( & self , other : & Self ) -> bool {
643+ self . inner == other. inner
644+ }
645+
646+ fn ne ( & self , other : & Self ) -> bool {
647+ self . inner != other. inner
648+ }
649+ }
650+
651+ impl < K , V > Eq for IndexMap < K , V >
652+ where
653+ K : Eq + Hash + Ord ,
654+ V : Eq ,
655+ {
656+ }
Original file line number Diff line number Diff line change @@ -289,3 +289,18 @@ where
289289 } )
290290 }
291291}
292+
293+ impl < T > PartialEq for IndexSet < T >
294+ where
295+ T : PartialEq + Hash + Ord ,
296+ {
297+ fn eq ( & self , other : & Self ) -> bool {
298+ self . inner == other. inner
299+ }
300+
301+ fn ne ( & self , other : & Self ) -> bool {
302+ self . inner != other. inner
303+ }
304+ }
305+
306+ impl < T > Eq for IndexSet < T > where T : Eq + Hash + Ord { }
You can’t perform that action at this time.
0 commit comments