#accessor

access

A crate that helps creating diverse accessors

2 releases

0.1.0 Mar 19, 2025

#622 in Data structures

Download history 267/week @ 2025-03-19 16/week @ 2025-03-26

283 downloads per month

MIT license

4KB
93 lines

Access

This crate introduces the Access trait which has two functions: get and set. This allows an implementor to have custom get and set logic around a value. For example, wrapping a reference in an Access provides functionality to map the getters and setters to another type with the map function.

Check the examples folder for more examples.

No runtime deps