pub fn mapped_bindings(&self) -> Vec<Keybind> {
        let mod_key: &String = &self.modkey.clone();
        let old_binds: &Vec<Keybind> = &self.keybind;
        old_binds
            .iter()
            .map(|k| {
                let mut keymap = k.clone();
                let old_mods: &Vec<String> = &k.modifier;
                let mods = old_mods
                    .iter()
                    .map(|m| {
                        if m == "modkey" {
                            mod_key.clone()
                        } else {
                            m.clone()
                        }
                    })
                    .collect();
                keymap.modifier = mods;
                keymap
            })
            .collect()
    }
/*
     * returns a collection of bindings with the mod key mapped
     */
returns a collection of bindings with the mod key mapped
returns a collection of bindings with the mod key mapped
pub fn mapped_bindings(&self) -> Vec<Keybind> {
        let mod_key: &String = &self.modkey.clone();
        let old_binds: &Vec<Keybind> = &self.keybind;
        old_binds
            .iter()
            .map(|k| {
                let mut keymap = k.clone();
                let old_mods: &Vec<String> = &k.modifier;
                let mods = old_mods
                    .iter()
                    .map(|m| {
                        if m == "modkey" {
                            mod_key.clone()
                        } else {
                            m.clone()
                        }
                    })
                    .collect();
                keymap.modifier = mods;
                keymap
            })
            .collect()
    }
pub fn mapped_bindings ( & self ) -> Vec < Keybind > { let mod_key : & String = & self . modkey . clone ( ) ; let old_binds : & Vec < Keybind > = & self . keybind ; old_binds . iter ( ) . map ( | k | { let mut keymap = k . clone ( ) ; let old_mods : & Vec < String > = & k . modifier ; let mods = old_mods . iter ( ) . map ( | m | { if m == " " { mod_key . clone ( ) } else { m . clone ( ) } } ) . collect ( ) ; keymap . modifier = mods ; keymap } ) . collect ( ) }
returns a collection of bindings with the mod key mapped
returns a collection of bindings with the mod key mapped
&self