pathify

Crates.iopathify
lib.rspathify
version0.1.0
created_at2024-12-13 20:47:07.338562+00
updated_at2024-12-13 20:47:07.338562+00
descriptionBuild nested structures that remember their ancestors
homepage
repositoryhttps://github.com/novartole/pathify
max_upload_size
id1482517
size7,864
Artem Novikov (novartole)

documentation

README

Description

Easy way to build nested structures. Such structures can be used as keys or database paths.

Usage

pathify! {
    Root {
        Node1
        Node2 {
            Node21
        }
    }
}

fn main() {
    let root = Root::default();
    assert_eq!(root.node2.node21.to_string(), "root.node_2.node_21");
}
Commit count: 5

cargo fmt