aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index b0df1ec..f1671b3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -39,6 +39,12 @@ impl AddressDisplay for usize {
}
}
+impl AddressDisplay for u64 {
+ fn stringy(&self) -> String {
+ format!("{:#x}", self)
+ }
+}
+
impl AddressDisplay for u32 {
fn stringy(&self) -> String {
format!("{:#x}", self)
@@ -59,6 +65,10 @@ impl Address for u32 {
fn to_linear(&self) -> usize { *self as usize }
}
+impl Address for u64 {
+ fn to_linear(&self) -> usize { *self as usize }
+}
+
impl Address for usize {
fn to_linear(&self) -> usize { *self }
}