Struct sundials_sys::SUNMemoryHelper_Ops_
source · #[repr(C)]pub struct SUNMemoryHelper_Ops_ {
pub alloc: Option<unsafe extern "C" fn(arg1: SUNMemoryHelper, memptr: *mut SUNMemory, mem_size: usize, mem_type: SUNMemoryType, queue: *mut c_void) -> SUNErrCode>,
pub dealloc: Option<unsafe extern "C" fn(arg1: SUNMemoryHelper, mem: SUNMemory, queue: *mut c_void) -> SUNErrCode>,
pub copy: Option<unsafe extern "C" fn(arg1: SUNMemoryHelper, dst: SUNMemory, src: SUNMemory, mem_size: usize, queue: *mut c_void) -> SUNErrCode>,
pub copyasync: Option<unsafe extern "C" fn(arg1: SUNMemoryHelper, dst: SUNMemory, src: SUNMemory, mem_size: usize, queue: *mut c_void) -> SUNErrCode>,
pub getallocstats: Option<unsafe extern "C" fn(arg1: SUNMemoryHelper, mem_type: SUNMemoryType, num_allocations: *mut c_ulong, num_deallocations: *mut c_ulong, bytes_allocated: *mut usize, bytes_high_watermark: *mut usize) -> SUNErrCode>,
pub clone: Option<unsafe extern "C" fn(arg1: SUNMemoryHelper) -> SUNMemoryHelper>,
pub destroy: Option<unsafe extern "C" fn(arg1: SUNMemoryHelper) -> SUNErrCode>,
}
Fields§
§alloc: Option<unsafe extern "C" fn(arg1: SUNMemoryHelper, memptr: *mut SUNMemory, mem_size: usize, mem_type: SUNMemoryType, queue: *mut c_void) -> SUNErrCode>
§dealloc: Option<unsafe extern "C" fn(arg1: SUNMemoryHelper, mem: SUNMemory, queue: *mut c_void) -> SUNErrCode>
§copy: Option<unsafe extern "C" fn(arg1: SUNMemoryHelper, dst: SUNMemory, src: SUNMemory, mem_size: usize, queue: *mut c_void) -> SUNErrCode>
§copyasync: Option<unsafe extern "C" fn(arg1: SUNMemoryHelper, dst: SUNMemory, src: SUNMemory, mem_size: usize, queue: *mut c_void) -> SUNErrCode>
§getallocstats: Option<unsafe extern "C" fn(arg1: SUNMemoryHelper, mem_type: SUNMemoryType, num_allocations: *mut c_ulong, num_deallocations: *mut c_ulong, bytes_allocated: *mut usize, bytes_high_watermark: *mut usize) -> SUNErrCode>
§clone: Option<unsafe extern "C" fn(arg1: SUNMemoryHelper) -> SUNMemoryHelper>
§destroy: Option<unsafe extern "C" fn(arg1: SUNMemoryHelper) -> SUNErrCode>
Trait Implementations§
source§impl Clone for SUNMemoryHelper_Ops_
impl Clone for SUNMemoryHelper_Ops_
source§fn clone(&self) -> SUNMemoryHelper_Ops_
fn clone(&self) -> SUNMemoryHelper_Ops_
Returns a copy 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 Debug for SUNMemoryHelper_Ops_
impl Debug for SUNMemoryHelper_Ops_
impl Copy for SUNMemoryHelper_Ops_
Auto Trait Implementations§
impl Freeze for SUNMemoryHelper_Ops_
impl RefUnwindSafe for SUNMemoryHelper_Ops_
impl Send for SUNMemoryHelper_Ops_
impl Sync for SUNMemoryHelper_Ops_
impl Unpin for SUNMemoryHelper_Ops_
impl UnwindSafe for SUNMemoryHelper_Ops_
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