#[non_exhaustive]pub struct Region {
pub ptr: Pointer,
pub size: usize,
pub align: usize,
}
Expand description
A memory region. Including its location in memory ptr
, it’s size
and
alignment align
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.ptr: Pointer
The pointer of the allocation.
size: usize
The size of the allocation.
align: usize
The alignment of the allocation.
Implementations§
Trait Implementations§
source§impl Ord for Region
impl Ord for Region
source§impl PartialEq<Region> for Region
impl PartialEq<Region> for Region
source§impl PartialOrd<Region> for Region
impl PartialOrd<Region> for Region
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more