pub fn add_actions(&mut self, actions : Vec<(T, Vec<Binding>)>){
        for (action, bindings) in actions {
            self.add_action(action.clone());
            for binding in bindings{
                self.bind(action.clone(), binding);
            }
        }
    }
//could we change Actions to contain a copy of T so we pass in a Vec<Action>
could we change Actions to contain a copy of T so we pass in a Vec
could we change Actions to contain a copy of T so we pass in a Vec
pub fn add_actions(&mut self, actions : Vec<(T, Vec<Binding>)>){
        for (action, bindings) in actions {
            self.add_action(action.clone());
            for binding in bindings{
                self.bind(action.clone(), binding);
            }
        }
    }
pub fn add_actions ( & mut self , actions : Vec < ( T , Vec < Binding > ) > ) { for ( action , bindings ) in actions { self . add_action ( action . clone ( ) ) ; for binding in bindings { self . bind ( action . clone ( ) , binding ) ; } } }
could we change Actions to contain a copy of T so we pass in a Vec<Action>
could we change Actions to contain a copy of T so we pass in a Vec<Action >
&mut self
actions
Vec<(T, Vec<Binding>)>