Struct ncnn_bind::__ncnn_modelbin_t
source · [−]#[repr(C)]pub struct __ncnn_modelbin_t {
pub pthis: *mut c_void,
pub load_1d: Option<unsafe extern "C" fn(mb: ncnn_modelbin_t, w: c_int, type_: c_int) -> ncnn_mat_t>,
pub load_2d: Option<unsafe extern "C" fn(mb: ncnn_modelbin_t, w: c_int, h: c_int, type_: c_int) -> ncnn_mat_t>,
pub load_3d: Option<unsafe extern "C" fn(mb: ncnn_modelbin_t, w: c_int, h: c_int, c: c_int, type_: c_int) -> ncnn_mat_t>,
}
Fields
pthis: *mut c_void
load_1d: Option<unsafe extern "C" fn(mb: ncnn_modelbin_t, w: c_int, type_: c_int) -> ncnn_mat_t>
load_2d: Option<unsafe extern "C" fn(mb: ncnn_modelbin_t, w: c_int, h: c_int, type_: c_int) -> ncnn_mat_t>
load_3d: Option<unsafe extern "C" fn(mb: ncnn_modelbin_t, w: c_int, h: c_int, c: c_int, type_: c_int) -> ncnn_mat_t>
Trait Implementations
sourceimpl Clone for __ncnn_modelbin_t
impl Clone for __ncnn_modelbin_t
sourcefn clone(&self) -> __ncnn_modelbin_t
fn clone(&self) -> __ncnn_modelbin_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_modelbin_t
impl Debug for __ncnn_modelbin_t
impl Copy for __ncnn_modelbin_t
Auto Trait Implementations
impl RefUnwindSafe for __ncnn_modelbin_t
impl !Send for __ncnn_modelbin_t
impl !Sync for __ncnn_modelbin_t
impl Unpin for __ncnn_modelbin_t
impl UnwindSafe for __ncnn_modelbin_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