Struct ncnn_bind::__ncnn_allocator_t
source · [−]#[repr(C)]pub struct __ncnn_allocator_t {
pub pthis: *mut c_void,
pub fast_malloc: Option<unsafe extern "C" fn(allocator: ncnn_allocator_t, size: size_t) -> *mut c_void>,
pub fast_free: Option<unsafe extern "C" fn(allocator: ncnn_allocator_t, ptr: *mut c_void)>,
}
Fields
pthis: *mut c_void
fast_malloc: Option<unsafe extern "C" fn(allocator: ncnn_allocator_t, size: size_t) -> *mut c_void>
fast_free: Option<unsafe extern "C" fn(allocator: ncnn_allocator_t, ptr: *mut c_void)>
Trait Implementations
sourceimpl Clone for __ncnn_allocator_t
impl Clone for __ncnn_allocator_t
sourcefn clone(&self) -> __ncnn_allocator_t
fn clone(&self) -> __ncnn_allocator_t
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for __ncnn_allocator_t
impl Debug for __ncnn_allocator_t
impl Copy for __ncnn_allocator_t
Auto Trait Implementations
impl RefUnwindSafe for __ncnn_allocator_t
impl !Send for __ncnn_allocator_t
impl !Sync for __ncnn_allocator_t
impl Unpin for __ncnn_allocator_t
impl UnwindSafe for __ncnn_allocator_t
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more