File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,28 @@ impl PartialEq<SerializedSignature> for [u8] {
53
53
fn eq ( & self , other : & SerializedSignature ) -> bool { * self == * * other }
54
54
}
55
55
56
+ impl PartialOrd for SerializedSignature {
57
+ fn partial_cmp ( & self , other : & SerializedSignature ) -> Option < core:: cmp:: Ordering > {
58
+ Some ( ( * * self ) . cmp ( & * * other) )
59
+ }
60
+ }
61
+
62
+ impl Ord for SerializedSignature {
63
+ fn cmp ( & self , other : & SerializedSignature ) -> core:: cmp:: Ordering { ( * * self ) . cmp ( & * * other) }
64
+ }
65
+
66
+ impl PartialOrd < [ u8 ] > for SerializedSignature {
67
+ fn partial_cmp ( & self , other : & [ u8 ] ) -> Option < core:: cmp:: Ordering > {
68
+ ( * * self ) . partial_cmp ( other)
69
+ }
70
+ }
71
+
72
+ impl PartialOrd < SerializedSignature > for [ u8 ] {
73
+ fn partial_cmp ( & self , other : & SerializedSignature ) -> Option < core:: cmp:: Ordering > {
74
+ self . partial_cmp ( & * * other)
75
+ }
76
+ }
77
+
56
78
impl core:: hash:: Hash for SerializedSignature {
57
79
fn hash < H : core:: hash:: Hasher > ( & self , state : & mut H ) { ( * * self ) . hash ( state) }
58
80
}
You can’t perform that action at this time.
0 commit comments