We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87f9cd6 commit 7e48944Copy full SHA for 7e48944
src/addr.rs
@@ -236,6 +236,13 @@ impl fmt::UpperHex for VirtAddr {
236
}
237
238
239
+impl fmt::Pointer for VirtAddr {
240
+ #[inline]
241
+ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
242
+ fmt::Pointer::fmt(&(self.0 as *const ()), f)
243
+ }
244
+}
245
+
246
impl Add<u64> for VirtAddr {
247
type Output = Self;
248
#[inline]
@@ -443,6 +450,13 @@ impl fmt::UpperHex for PhysAddr {
443
450
444
451
445
452
453
+impl fmt::Pointer for PhysAddr {
454
455
456
457
458
459
446
460
impl Add<u64> for PhysAddr {
447
461
448
462
0 commit comments