pub fn drop_handle<T: 'static>(env: &JNIEnv, handle: Handle) {
    let res = panic::catch_unwind(|| unsafe {
        resource_manager::remove_handle::<T>(handle);
        Box::from_raw(handle as *mut T);
        Ok(())
    });
    exception::unwrap_exc_or_default(env, res);
}
/// Destroys the Java-owned native object identified by the given handle.
///
/// # Panics
///
/// Panics if the handle is not valid, or if it identifies a native-owned object.
Destroys the Java-owned native object identified by the given handle.
Destroys the Java - owned native object identified by the given handle .
pub fn drop_handle<T: 'static>(env: &JNIEnv, handle: Handle) {
    let res = panic::catch_unwind(|| unsafe {
        resource_manager::remove_handle::<T>(handle);
        Box::from_raw(handle as *mut T);
        Ok(())
    });
    exception::unwrap_exc_or_default(env, res);
}
pub fn drop_handle < T : ' static > ( env : & JNIEnv , handle : Handle ) { let res = panic :: catch_unwind ( | | unsafe { resource_manager :: remove_handle :: < T > ( handle ) ; Box :: from_raw ( handle as * mut T ) ; Ok ( ( ) ) } ) ; exception :: unwrap_exc_or_default ( env , res ) ; }
Destroys the Java-owned native object identified by the given handle.
Destroys the Java - owned native object identified by the given handle .
env
&JNIEnv
handle
Handle
panics
Panics if the handle is not valid, or if it identifies a native-owned object.
Panics if the handle is not valid or if it identifies a native - owned object .