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
Whether the region is shared or not
size: usize
Size of the region (multiple of page size)
Implementations
Trait Implementations
impl Copy for Region
impl Send for Region
impl Sync for Region
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more