| Crates.io | pathmod |
| lib.rs | pathmod |
| version | 0.1.3 |
| created_at | 2025-09-02 12:15:20.094985+00 |
| updated_at | 2025-09-02 13:31:46.496981+00 |
| description | Re-export crate for pathmod |
| homepage | https://github.com/dahankzter/pathmod-rs |
| repository | https://github.com/dahankzter/pathmod-rs |
| max_upload_size | |
| id | 1821053 |
| size | 13,994 |
Purpose
Quick use
Example See the top-level README.md for complete, runnable examples, including deep composition. A tiny sketch:
use pathmod::prelude::*;
#[derive(Accessor)]
struct Inner { x: i32 }
#[derive(Accessor)]
struct Outer { inner: Inner }
fn demo(mut o: Outer) {
let acc = Outer::acc_inner().compose(Inner::acc_x());
acc.set_mut(&mut o, |v| *v += 1);
}
When should I depend on this crate?
Notes
License Dual-licensed under MIT or Apache-2.0.