Type Alias memflow::types::address::umem

source ·
pub type umem = u64;
Expand description

The largest target memory type The following core rule is defined for these memory types:

PAGE_SIZE < usize <= umem

Where PAGE_SIZE is any lowest granularity page size, usize is the standard size type, and umem is memflow’s memory size type.

This means that usize can always be safely cast to umem, while anything to do with page sizes can be cast to umem safely,

Trait Implementations§

source§

impl<U: Into<Address>, T: ?Sized> From<Pointer<U, T>> for umem

source§

fn from(ptr: Pointer<U, T>) -> umem

Converts to this type from the input type.
source§

impl SplitAtIndex for umem

source§

fn split_at(self, idx: umem) -> (Option<Self>, Option<Self>)

Split data at a given index Read more
source§

unsafe fn split_at_mut(&mut self, idx: umem) -> (Option<Self>, Option<Self>)

Split data using mutable reference Read more
source§

fn length(&self) -> umem

Returns the length of the data Read more
source§

fn size_hint(&self) -> usize

Returns an allocation size hint for the data Read more
source§

fn split_inclusive_at(self, idx: umem) -> (Option<Self>, Option<Self>)
where Self: Sized,

Inclusive version of split_at Read more
source§

unsafe fn split_inclusive_at_mut( &mut self, idx: umem ) -> (Option<Self>, Option<Self>)
where Self: Sized,

Inclusive version of split_at_mut Read more
source§

fn split_at_rev(self, idx: umem) -> (Option<Self>, Option<Self>)
where Self: Sized,

Reverse version of split_at Read more