#[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§
Source§impl Clone for OrtAllocator
impl Clone for OrtAllocator
Source§fn clone(&self) -> OrtAllocator
fn clone(&self) -> OrtAllocator
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 OrtAllocator
impl Debug for OrtAllocator
impl Copy for OrtAllocator
Auto Trait Implementations§
impl Freeze for OrtAllocator
impl RefUnwindSafe for OrtAllocator
impl Send for OrtAllocator
impl Sync for OrtAllocator
impl Unpin for OrtAllocator
impl UnwindSafe for OrtAllocator
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