pub fn bind_action<T>(&mut self, event: &T, action: Action<'a, R>)
        where E: Borrow<T>, T: ToOwned<Owned=E> + ?Sized
    {
        self.0.insert(event.to_owned(), action);
    }
/// Overwrite or create a binding.
/// `self.get_action()` is useful for rebinding keys.
/// The event must be passed by reference: it will be
/// converted to an owned type.
///
/// # Examples:
///
/// ```
/// use kbehdz::Bindings;
/// let one = || {1};
/// let mut kc = Bindings::new();
/// kc.bind_action(&'a', &one);
/// assert_eq!(kc.run_action(&'a').unwrap(), 1);
/// ```
Overwrite or create a binding.
`self.get_action()` is useful for rebinding keys.
The event must be passed by reference: it will be
converted to an owned type.
Overwrite or create a binding . ` self . get_action () ` is useful for rebinding keys . The event must be passed by reference : it will be converted to an owned type .
pub fn bind_action<T>(&mut self, event: &T, action: Action<'a, R>)
        where E: Borrow<T>, T: ToOwned<Owned=E> + ?Sized
    {
        self.0.insert(event.to_owned(), action);
    }
pub fn bind_action < T > ( & mut self , event : & T , action : Action < ' a , R > ) where E : Borrow < T > , T : ToOwned < Owned = E > + ? Sized { self . 0 . insert ( event . to_owned ( ) , action ) ; }
Overwrite or create a binding.
Overwrite or create a binding .
&mut self
event
&T
action
Action<'a, R>
&mut self
event
&T
action
Action<'a, R>
examples:
None