Struct ncnn_bind::__ncnn_layer_t
source · [−]#[repr(C)]pub struct __ncnn_layer_t {
pub pthis: *mut c_void,
pub load_param: Option<unsafe extern "C" fn(layer: ncnn_layer_t, pd: ncnn_paramdict_t) -> c_int>,
pub load_model: Option<unsafe extern "C" fn(layer: ncnn_layer_t, mb: ncnn_modelbin_t) -> c_int>,
pub create_pipeline: Option<unsafe extern "C" fn(layer: ncnn_layer_t, opt: ncnn_option_t) -> c_int>,
pub destroy_pipeline: Option<unsafe extern "C" fn(layer: ncnn_layer_t, opt: ncnn_option_t) -> c_int>,
pub forward_1: Option<unsafe extern "C" fn(layer: ncnn_layer_t, bottom_blob: ncnn_mat_t, top_blob: *mut ncnn_mat_t, opt: ncnn_option_t) -> c_int>,
pub forward_n: Option<unsafe extern "C" fn(layer: ncnn_layer_t, bottom_blobs: *const ncnn_mat_t, n: c_int, top_blobs: *mut ncnn_mat_t, n2: c_int, opt: ncnn_option_t) -> c_int>,
pub forward_inplace_1: Option<unsafe extern "C" fn(layer: ncnn_layer_t, bottom_top_blob: ncnn_mat_t, opt: ncnn_option_t) -> c_int>,
pub forward_inplace_n: Option<unsafe extern "C" fn(layer: ncnn_layer_t, bottom_top_blobs: *mut ncnn_mat_t, n: c_int, opt: ncnn_option_t) -> c_int>,
}
Fields
pthis: *mut c_void
load_param: Option<unsafe extern "C" fn(layer: ncnn_layer_t, pd: ncnn_paramdict_t) -> c_int>
load_model: Option<unsafe extern "C" fn(layer: ncnn_layer_t, mb: ncnn_modelbin_t) -> c_int>
create_pipeline: Option<unsafe extern "C" fn(layer: ncnn_layer_t, opt: ncnn_option_t) -> c_int>
destroy_pipeline: Option<unsafe extern "C" fn(layer: ncnn_layer_t, opt: ncnn_option_t) -> c_int>
forward_1: Option<unsafe extern "C" fn(layer: ncnn_layer_t, bottom_blob: ncnn_mat_t, top_blob: *mut ncnn_mat_t, opt: ncnn_option_t) -> c_int>
forward_n: Option<unsafe extern "C" fn(layer: ncnn_layer_t, bottom_blobs: *const ncnn_mat_t, n: c_int, top_blobs: *mut ncnn_mat_t, n2: c_int, opt: ncnn_option_t) -> c_int>
forward_inplace_1: Option<unsafe extern "C" fn(layer: ncnn_layer_t, bottom_top_blob: ncnn_mat_t, opt: ncnn_option_t) -> c_int>
forward_inplace_n: Option<unsafe extern "C" fn(layer: ncnn_layer_t, bottom_top_blobs: *mut ncnn_mat_t, n: c_int, opt: ncnn_option_t) -> c_int>
Trait Implementations
sourceimpl Clone for __ncnn_layer_t
impl Clone for __ncnn_layer_t
sourcefn clone(&self) -> __ncnn_layer_t
fn clone(&self) -> __ncnn_layer_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_layer_t
impl Debug for __ncnn_layer_t
impl Copy for __ncnn_layer_t
Auto Trait Implementations
impl RefUnwindSafe for __ncnn_layer_t
impl !Send for __ncnn_layer_t
impl !Sync for __ncnn_layer_t
impl Unpin for __ncnn_layer_t
impl UnwindSafe for __ncnn_layer_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