Searched refs:map (Results 1 – 4 of 4) sorted by relevance
18 let map = HELP_MAP.as_ref().unwrap().lock().unwrap(); in help() localVariable19 for (name, func) in map.iter() { in help()27 let mut map = HELP_MAP.as_ref().unwrap().lock().unwrap(); in init() localVariable29 let mut insert = |tuple: (String, fn() -> ())| map.insert(tuple.0, tuple.1); in init()
38 pub fn map() -> Option<Arc<Mutex<CommandMap>>> { in map() method44 let mut map = BUILD_IN_CMD.as_ref().unwrap().lock().unwrap(); in init() localVariable46 map.insert(tuple.0, tuple.1) in init()
40 if BuildInCmd::map().is_none() { in new()58 let map = BuildInCmd::map(); in create_backend_thread() localVariable63 for child in pipeline.execute(map.clone()) { in create_backend_thread()139 for mut child in pipeline.execute(BuildInCmd::map().clone()) { in exec_commands_in_line()397 for (cmd, _) in BuildInCmd::map().as_ref().unwrap().lock().unwrap().iter() { in complete_command()
400 if let Some(ref map) = internal_commands { in execute()401 let map = map.lock().unwrap(); in execute() localVariable402 if let Some(f) = map.get(&cmd.name) { in execute()