File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ use bit_field::BitField;
9
9
/// A canonical 64-bit virtual memory address.
10
10
///
11
11
/// This is a wrapper type around an `u64`, so it is always 8 bytes, even when compiled
12
- /// on non 64-bit systems. The `UsizeConversions` trait can be used for performing conversions
12
+ /// on non 64-bit systems. The
13
+ /// [`TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) trait can be used for performing conversions
13
14
/// between `u64` and `usize`.
14
15
///
15
16
/// On `x86_64`, only the 48 lower bits of a virtual address can be used. The top 16 bits need
@@ -22,7 +23,8 @@ pub struct VirtAddr(u64);
22
23
/// A 64-bit physical memory address.
23
24
///
24
25
/// This is a wrapper type around an `u64`, so it is always 8 bytes, even when compiled
25
- /// on non 64-bit systems. The `UsizeConversions` trait can be used for performing conversions
26
+ /// on non 64-bit systems. The
27
+ /// [`TryFrom`](https://doc.rust-lang.org/std/convert/trait.TryFrom.html) trait can be used for performing conversions
26
28
/// between `u64` and `usize`.
27
29
///
28
30
/// On `x86_64`, only the 52 lower bits of a physical address can be used. The top 12 bits need
You can’t perform that action at this time.
0 commit comments