pub trait MemoryRegionKind {
type HostBaseType: Copy;
// Required method
fn add(base: Self::HostBaseType, size: usize) -> Self::HostBaseType;
}Expand description
A trait that distinguishes between different kinds of memory region representations.
This trait is used to parameterize MemoryRegion_
Required Associated Types§
Sourcetype HostBaseType: Copy
type HostBaseType: Copy
The type used to represent host memory addresses.
Required Methods§
Sourcefn add(base: Self::HostBaseType, size: usize) -> Self::HostBaseType
fn add(base: Self::HostBaseType, size: usize) -> Self::HostBaseType
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
Source§impl MemoryRegionKind for HostGuestMemoryRegion
Available on non-Windows only.
impl MemoryRegionKind for HostGuestMemoryRegion
Available on non-Windows only.