Struct region::Region [] [src]

pub struct Region {
    pub base: *const u8,
    pub guarded: bool,
    pub protection: Flag,
    pub shared: bool,
    pub size: usize,
}

A descriptor for a memory region

This type acts as a POD-type, i.e it has no functionality but merely stores region information.

Fields

Base address of the region

Whether the region is guarded or not

Protection of the region

Whether the region is shared or not

Size of the region (multiple of page size)

Methods

impl Region
[src]

Returns the region's lower bound.

Returns the region's upper bound.

Trait Implementations

impl Debug for Region
[src]

Formats the value using the given formatter.

impl Clone for Region
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Region
[src]