| Crates.io | pathify |
| lib.rs | pathify |
| version | 0.1.0 |
| created_at | 2024-12-13 20:47:07.338562+00 |
| updated_at | 2024-12-13 20:47:07.338562+00 |
| description | Build nested structures that remember their ancestors |
| homepage | |
| repository | https://github.com/novartole/pathify |
| max_upload_size | |
| id | 1482517 |
| size | 7,864 |
Easy way to build nested structures. Such structures can be used as keys or database paths.
pathify! {
Root {
Node1
Node2 {
Node21
}
}
}
fn main() {
let root = Root::default();
assert_eq!(root.node2.node21.to_string(), "root.node_2.node_21");
}