#[repr(C)]pub struct OsVirtualMemoryApi {
pub map: Option<unsafe extern "C" fn(size: u64) -> *mut c_void>,
pub unmap: Option<unsafe extern "C" fn(p: *mut c_void, size: u64)>,
pub reserve: Option<unsafe extern "C" fn(size: u64) -> *mut c_void>,
pub commit: Option<unsafe extern "C" fn(p: *mut c_void, size: u64)>,
}
Fields§
§map: Option<unsafe extern "C" fn(size: u64) -> *mut c_void>
§unmap: Option<unsafe extern "C" fn(p: *mut c_void, size: u64)>
§reserve: Option<unsafe extern "C" fn(size: u64) -> *mut c_void>
§commit: Option<unsafe extern "C" fn(p: *mut c_void, size: u64)>
Implementations§
Trait Implementations§
Source§impl Clone for OsVirtualMemoryApi
impl Clone for OsVirtualMemoryApi
Source§fn clone(&self) -> OsVirtualMemoryApi
fn clone(&self) -> OsVirtualMemoryApi
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for OsVirtualMemoryApi
impl Default for OsVirtualMemoryApi
Source§fn default() -> OsVirtualMemoryApi
fn default() -> OsVirtualMemoryApi
Returns the “default value” for a type. Read more
impl Copy for OsVirtualMemoryApi
Auto Trait Implementations§
impl Freeze for OsVirtualMemoryApi
impl RefUnwindSafe for OsVirtualMemoryApi
impl Send for OsVirtualMemoryApi
impl Sync for OsVirtualMemoryApi
impl Unpin for OsVirtualMemoryApi
impl UnwindSafe for OsVirtualMemoryApi
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