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: *const u8
Base address of the region
guarded: bool
Whether the region is guarded or not
protection: Flag
Protection of the region
Whether the region is shared or not
size: usize
Size of the region (multiple of page size)
Methods
impl Region
[src]
fn lower(&self) -> usize
Returns the region's lower bound.
fn upper(&self) -> usize
Returns the region's upper bound.
Trait Implementations
impl Debug for Region
[src]
impl Clone for Region
[src]
fn clone(&self) -> Region
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more