real_memory/lib.rs
1#![no_std]
2
3#[cfg(any(target_arch = "x86_64", target_arch = "riscv"))]
4#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
5pub struct Address(pub u64);
6
7impl Address {
8 #[cfg(any(target_arch = "x86_64", target_arch = "riscv"))]
9 #[inline]
10 pub const fn new(a: u64) -> Option<Self> { Some(Address(a)) }
11}