diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 } } |