pub fn remove_action_binding<T: Hash + Eq + ?Sized>(&mut self, id: &T, binding: Button)
    where
        AC: Borrow<T>,
    {
        let mut kill_it = false;
        if let Some(action_bindings) = self.actions.get_mut(id) {
            let index = action_bindings.iter().position(|&b| b == binding);
            if let Some(index) = index {
                action_bindings.swap_remove(index);
            }
            kill_it = action_bindings.is_empty();
        }
        if kill_it {
            self.actions.remove(id);
        }
    }
/// Removes an action binding that was assigned previously.
Removes an action binding that was assigned previously.
Removes an action binding that was assigned previously .
pub fn remove_action_binding<T: Hash + Eq + ?Sized>(&mut self, id: &T, binding: Button)
    where
        AC: Borrow<T>,
    {
        let mut kill_it = false;
        if let Some(action_bindings) = self.actions.get_mut(id) {
            let index = action_bindings.iter().position(|&b| b == binding);
            if let Some(index) = index {
                action_bindings.swap_remove(index);
            }
            kill_it = action_bindings.is_empty();
        }
        if kill_it {
            self.actions.remove(id);
        }
    }
pub fn remove_action_binding < T : Hash + Eq + ? Sized > ( & mut self , id : & T , binding : Button ) where AC : Borrow < T > , { let mut kill_it = false ; if let Some ( action_bindings ) = self . actions . get_mut ( id ) { let index = action_bindings . iter ( ) . position ( | & b | b == binding ) ; if let Some ( index ) = index { action_bindings . swap_remove ( index ) ; } kill_it = action_bindings . is_empty ( ) ; } if kill_it { self . actions . remove ( id ) ; } }
Removes an action binding that was assigned previously.
Removes an action binding that was assigned previously .
&mut self
id
&T
binding
Button
&mut self
id
&T
binding
Button