Type Alias nn_aux_object_free

Source
pub type nn_aux_object_free = Option<unsafe extern "C" fn(tensor: *mut NNTensor)>;
Expand description

Callback function to free an auxiliary object, called from nn_tensor_release.

@private @memberof NNTensor @since 2.1

Aliased Type§

enum nn_aux_object_free {
    None,
    Some(unsafe extern "C" fn(_: *mut nn_tensor)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut nn_tensor))

Some value of type T.