File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -206,6 +206,34 @@ impl fmt::Debug for VirtAddr {
206
206
}
207
207
}
208
208
209
+ impl fmt:: Binary for VirtAddr {
210
+ #[ inline]
211
+ fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
212
+ self . 0 . fmt ( f)
213
+ }
214
+ }
215
+
216
+ impl fmt:: LowerHex for VirtAddr {
217
+ #[ inline]
218
+ fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
219
+ self . 0 . fmt ( f)
220
+ }
221
+ }
222
+
223
+ impl fmt:: Octal for VirtAddr {
224
+ #[ inline]
225
+ fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
226
+ self . 0 . fmt ( f)
227
+ }
228
+ }
229
+
230
+ impl fmt:: UpperHex for VirtAddr {
231
+ #[ inline]
232
+ fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
233
+ self . 0 . fmt ( f)
234
+ }
235
+ }
236
+
209
237
impl Add < u64 > for VirtAddr {
210
238
type Output = Self ;
211
239
#[ inline]
You can’t perform that action at this time.
0 commit comments