#[repr(transparent)]pub struct MemoryAddressOffset<S: PageSize> {
value: u64,
_phantom: PhantomData<S>,
}Expand description
The offset within a page of size S (0..S::SIZE-1).
Fields§
§value: u64§_phantom: PhantomData<S>Implementations§
Trait Implementations§
Source§impl<S: PageSize> Add<MemoryAddressOffset<S>> for MemoryPage<S>
impl<S: PageSize> Add<MemoryAddressOffset<S>> for MemoryPage<S>
Source§type Output = MemoryAddress
type Output = MemoryAddress
The resulting type after applying the
+ operator.Source§impl<S: Clone + PageSize> Clone for MemoryAddressOffset<S>
impl<S: Clone + PageSize> Clone for MemoryAddressOffset<S>
Source§fn clone(&self) -> MemoryAddressOffset<S>
fn clone(&self) -> MemoryAddressOffset<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: PageSize> Debug for MemoryAddressOffset<S>
impl<S: PageSize> Debug for MemoryAddressOffset<S>
Source§impl<S: PageSize> From<MemoryAddress> for MemoryAddressOffset<S>
impl<S: PageSize> From<MemoryAddress> for MemoryAddressOffset<S>
Source§fn from(addr: MemoryAddress) -> Self
fn from(addr: MemoryAddress) -> Self
Converts to this type from the input type.
Source§impl<S: Ord + PageSize> Ord for MemoryAddressOffset<S>
impl<S: Ord + PageSize> Ord for MemoryAddressOffset<S>
Source§fn cmp(&self, other: &MemoryAddressOffset<S>) -> Ordering
fn cmp(&self, other: &MemoryAddressOffset<S>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<S: PartialOrd + PageSize> PartialOrd for MemoryAddressOffset<S>
impl<S: PartialOrd + PageSize> PartialOrd for MemoryAddressOffset<S>
impl<S: Copy + PageSize> Copy for MemoryAddressOffset<S>
impl<S: Eq + PageSize> Eq for MemoryAddressOffset<S>
impl<S: PageSize> StructuralPartialEq for MemoryAddressOffset<S>
Auto Trait Implementations§
impl<S> Freeze for MemoryAddressOffset<S>
impl<S> RefUnwindSafe for MemoryAddressOffset<S>where
S: RefUnwindSafe,
impl<S> Send for MemoryAddressOffset<S>where
S: Send,
impl<S> Sync for MemoryAddressOffset<S>where
S: Sync,
impl<S> Unpin for MemoryAddressOffset<S>where
S: Unpin,
impl<S> UnwindSafe for MemoryAddressOffset<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more