File tree 1 file changed +28
-0
lines changed
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,34 @@ impl<T: fmt::Display> fmt::Display for Wrapping<T> {
66
66
}
67
67
}
68
68
69
+ #[ stable( feature = "wrapping_fmt" , since = "1.11.0" ) ]
70
+ impl < T : fmt:: Binary > fmt:: Binary for Wrapping < T > {
71
+ fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
72
+ self . 0 . fmt ( f)
73
+ }
74
+ }
75
+
76
+ #[ stable( feature = "wrapping_fmt" , since = "1.11.0" ) ]
77
+ impl < T : fmt:: Octal > fmt:: Octal for Wrapping < T > {
78
+ fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
79
+ self . 0 . fmt ( f)
80
+ }
81
+ }
82
+
83
+ #[ stable( feature = "wrapping_fmt" , since = "1.11.0" ) ]
84
+ impl < T : fmt:: LowerHex > fmt:: LowerHex for Wrapping < T > {
85
+ fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
86
+ self . 0 . fmt ( f)
87
+ }
88
+ }
89
+
90
+ #[ stable( feature = "wrapping_fmt" , since = "1.11.0" ) ]
91
+ impl < T : fmt:: UpperHex > fmt:: UpperHex for Wrapping < T > {
92
+ fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
93
+ self . 0 . fmt ( f)
94
+ }
95
+ }
96
+
69
97
mod wrapping;
70
98
71
99
// All these modules are technically private and only exposed for libcoretest:
You can’t perform that action at this time.
0 commit comments