code_passenger 0.4.1

Scans a Rust workspace with klepto and does the writing: feature gates across every crate from one features document, proven by cargo check, Cargo.toml edits, file headers from the plan, and the history of it.
Documentation
1
2
3
4
5
6
7
8
9
10
pub struct Lens<S, A> {
    pub get: fn(&S) -> &A,
    pub get_mut: fn(&mut S) -> &mut A,
}

impl<S, A> Lens<S, A> {
    pub fn over(&self, s: &mut S, f: impl FnOnce(&mut A)) {
        f((self.get_mut)(s));
    }
}