pub fn from_raw_parts(
        set: ColliderSet,
        handle_map: BiDirHashMap<ColliderHandle, NativeColliderHandle>,
    ) -> Result<Self, &'static str> {
        assert_eq!(set.len(), handle_map.len());

        for handle in handle_map.forward_map().values() {
            if !set.contains(*handle) {
                return Err(
                    "Unable to create collider container because handle map is out of sync!",
                );
            }
        }

        Ok(Self { set, handle_map })
    }
/// Tries to create the container from raw parts - the collider set and handle map.
Tries to create the container from raw parts - the collider set and handle map.
Tries to create the container from raw parts - the collider set and handle map .
pub fn from_raw_parts(
        set: ColliderSet,
        handle_map: BiDirHashMap<ColliderHandle, NativeColliderHandle>,
    ) -> Result<Self, &'static str> {
        assert_eq!(set.len(), handle_map.len());
        for handle in handle_map.forward_map().values() {
            if !set.contains(*handle) {
                return Err(
                    "Unable to create collider container because handle map is out of sync!",
                );
            }
        }
        Ok(Self { set, handle_map })
    }
pub fn from_raw_parts ( set : ColliderSet , handle_map : BiDirHashMap < ColliderHandle , NativeColliderHandle > , ) -> Result < Self , & ' static str > { assert_eq ! ( set len ( ) handle_map len ( ) ) ; for handle in handle_map . forward_map ( ) . values ( ) { if ! set . contains ( * handle ) { return Err ( " " , ) ; } } Ok ( Self { set , handle_map } ) }
Tries to create the container from raw parts - the collider set and handle map.
Tries to create the container from raw parts - the collider set and handle map .
set
ColliderSet
handle_map
BiDirHashMap<ColliderHandle, NativeColliderHandle>
set
ColliderSet
handle_map
BiDirHashMap<ColliderHandle, NativeColliderHandle>