Struct onnxruntime_sys::OrtAllocator [−][src]
#[repr(C)]pub struct OrtAllocator { pub version: u32, pub Alloc: Option<unsafe extern "C" fn(this_: *mut OrtAllocator, size: usize) -> *mut c_void>, pub Free: Option<unsafe extern "C" fn(this_: *mut OrtAllocator, p: *mut c_void)>, pub Info: Option<unsafe extern "C" fn(this_: *const OrtAllocator) -> *const OrtMemoryInfo>, }
Fields
version: u32
Alloc: Option<unsafe extern "C" fn(this_: *mut OrtAllocator, size: usize) -> *mut c_void>
Free: Option<unsafe extern "C" fn(this_: *mut OrtAllocator, p: *mut c_void)>
Info: Option<unsafe extern "C" fn(this_: *const OrtAllocator) -> *const OrtMemoryInfo>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for OrtAllocator
impl Send for OrtAllocator
impl Sync for OrtAllocator
impl Unpin for OrtAllocator
impl UnwindSafe for OrtAllocator
Blanket Implementations
Mutably borrows from an owned value. Read more