#[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_voidload_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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.