[][src]Function xaynet::sdk::api::drop_model

#[no_mangle]pub unsafe extern "C" fn drop_model(client: *mut FFIClient)

Destroys a Client's cached primitive model and frees its allocated memory.

It is not necessary to call this function if update_model() or drop_client() is called anyways.

Errors

Ignores null pointer clients and returns immediately.

Safety

The method dereferences from the raw pointer arguments. Therefore, the behavior of the method is undefined if the arguments don't point to valid objects.