Crate wang_utils

Source
Expand description

自己整理的工具类集合

§Examples

use std::collections::HashMap;
use wang_utils::hashmap::HashmapCustom;

let mut map = HashMap::new();
map.set_value("i32", 111);
map.set_value("String", "111".to_string());
let option = map.get_value::<i32>("i32");
assert_eq!(Some(111), option);
let option1 = map.get_value_ref::<String>("String");
assert_eq!(Some(&"111".to_string()), option1);

Modules§

command
命令行工具集合
fs
文件相关工具集合
hashmap
hashmap工具集合