pub struct CollisionProfilesRegistry<Key: Eq + Hash> { /* private fields */ }Implementations§
Source§impl<Key: Eq + Hash> CollisionProfilesRegistry<Key>
impl<Key: Eq + Hash> CollisionProfilesRegistry<Key>
pub fn with(self, key: Key, profile: CollisionProfile) -> Self
pub fn register(&mut self, key: Key, profile: CollisionProfile)
pub fn unregister(&mut self, key: &Key) -> Option<CollisionProfile>
pub fn get(&self, key: &Key) -> Option<&CollisionProfile>
pub fn contains(&self, key: &Key) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<Key> Freeze for CollisionProfilesRegistry<Key>
impl<Key> RefUnwindSafe for CollisionProfilesRegistry<Key>where
Key: RefUnwindSafe,
impl<Key> Send for CollisionProfilesRegistry<Key>where
Key: Send,
impl<Key> Sync for CollisionProfilesRegistry<Key>where
Key: Sync,
impl<Key> Unpin for CollisionProfilesRegistry<Key>where
Key: Unpin,
impl<Key> UnsafeUnpin for CollisionProfilesRegistry<Key>
impl<Key> UnwindSafe for CollisionProfilesRegistry<Key>where
Key: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more