Trait evegfx::memory::region::MemoryRegion [−][src]
A trait implemented by all memory regions that Ptr
instances can
refer to.
It doesn't make sense to implement this trait outside of the evegfx
crate. It is implemented by EVE-model-specific APIs elsewhere in this
crate. Within the context of a particular model none of the available
memory regions may overlap.
Memory regions exist only at compile time, as a facility to have the Rust type system help ensure valid use of pointers. At runtime we deal only in absolute addresses represented as u32.
Associated Types
Loading content...Associated Constants
Loading content...Provided methods
fn ptr(raw: u32) -> Ptr<Self>
[src]
Creates a pointer in the selected memory region.
The given value is interpreted as an offset into the memory region, modulo the size of the region.