Plugx Input (work-in-progress)
A simple and flexible data-structure for configuration and state manipulation of plugins.
Package | Documentation | Repository
Demo
use Input;
let mut map = new_map;
map.map_mut.unwrap.insert;
let inner_list = map
.map_mut.unwrap // &mut Hashmap<String, Input>
.get_mut // Option<&mut Input>
.unwrap // &mut Input (which is a list)
.list_mut.unwrap; // &mut Vec<Input>
*inner_list.get_mut.unwrap = 3.14.into;
*inner_list.get_mut.unwrap = true.into;
*inner_list.get_mut.unwrap = "hello world".into;
println!;
// prints:
// {"key": [3.14, true, "hello world"]}
To contributors
I ❤️ PR from everyone, and I appreciate your help but before opening a PR, file an issue and describe your feature, fix, etc.