fn add_handle_impl<T: 'static>(handle: Handle, ownership: HandleOwnershipType) {
    assert_ne!(handle, 0);
    assert!(
        HANDLES_MAP
            .write()
            .expect("Unable to obtain write-lock")
            .insert(handle, HandleInfo::new(TypeId::of::<T>(), ownership))
            .is_none(),
        "Trying to add the same handle for the second time: {:X}",
        handle
    )
}
/// Adds given handle to the resource manager.
///
/// # Panics
///
/// Panics if handle is equal to zero or it is already present in the resource manager.
Adds given handle to the resource manager.
Adds given handle to the resource manager .
fn add_handle_impl<T: 'static>(handle: Handle, ownership: HandleOwnershipType) {
    assert_ne!(handle, 0);
    assert!(
        HANDLES_MAP
            .write()
            .expect("Unable to obtain write-lock")
            .insert(handle, HandleInfo::new(TypeId::of::<T>(), ownership))
            .is_none(),
        "Trying to add the same handle for the second time: {:X}",
        handle
    )
}
fn add_handle_impl < T : ' static > ( handle : Handle , ownership : HandleOwnershipType ) { assert_ne ! ( handle 0 ) ; assert ! ( HANDLES_MAP write ( ) expect ( " " ) insert ( handle HandleInfo new ( TypeId of T ( ) ownership ) ) is_none ( ) " " handle ) }
Adds given handle to the resource manager.
Adds given handle to the resource manager .
handle
Handle
ownership
HandleOwnershipType
panics
Panics if handle is equal to zero or it is already present in the resource manager.
Panics if handle is equal to zero or it is already present in the resource manager .