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