We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fc356f8 + 760fa3d commit 3d32678Copy full SHA for 3d32678
src/addr.rs
@@ -41,7 +41,7 @@ pub struct PhysAddr(u64);
41
/// overwritten possibly meaningful bits. This likely indicates a bug, for example an invalid
42
/// address calculation.
43
#[derive(Debug)]
44
-pub struct VirtAddrNotValid(u64);
+pub struct VirtAddrNotValid(pub u64);
45
46
impl VirtAddr {
47
/// Creates a new canonical virtual address.
@@ -326,7 +326,7 @@ impl Sub<VirtAddr> for VirtAddr {
326
///
327
/// This means that bits 52 to 64 were not all null.
328
329
-pub struct PhysAddrNotValid(u64);
+pub struct PhysAddrNotValid(pub u64);
330
331
impl PhysAddr {
332
/// Creates a new physical address.
0 commit comments