#[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: PointerThe pointer of the allocation.
size: usizeThe size of the allocation.
align: usizeThe alignment of the allocation.
Implementations§
Trait Implementations§
Source§impl Ord for Region
impl Ord for Region
Source§impl PartialOrd for Region
impl PartialOrd for Region
impl Copy for Region
impl Eq for Region
impl StructuralPartialEq for Region
Auto Trait Implementations§
impl Freeze for Region
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnwindSafe for Region
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