This commit is contained in:
Erin 2023-11-03 09:19:41 +01:00
parent d9b4c0dda2
commit ee280cd55f

View file

@ -1,8 +1,9 @@
//! Virtual(?) memory address //! Virtual(?) memory address
use core::{fmt::Debug, ops}; use {
crate::utils::impl_display,
use crate::utils::impl_display; core::{fmt::Debug, ops},
};
/// Memory address /// Memory address
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord)] #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
@ -126,6 +127,5 @@ macro_rules! impl_address_ops_i(($($ty:ty),* $(,)?) => {
})* })*
}); });
impl_address_ops_u!(u8, u16, u32, u64, usize); impl_address_ops_u!(u8, u16, u32, u64, usize);
impl_address_ops_i!(i8, i16, i32, i64, isize); impl_address_ops_i!(i8, i16, i32, i64, isize);