Struct region::Region

source ·
pub struct Region {
    pub base: *const u8,
    pub guarded: bool,
    pub protection: Protection,
    pub shared: bool,
    pub size: usize,
}
Expand description

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: Protection

Protection of the region

§shared: bool

Whether the region is shared or not

§size: usize

Size of the region (multiple of page size)

Implementations§

Returns the region’s lower bound.

Returns the region’s upper bound.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.