1 unstable release

0.1.0 Jan 5, 2020

24 downloads per month
Used in soak

MIT/Apache

6KB

Dioptre

License Cargo Documentation

This crate provides struct field projection tools.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

Dioptre

Dioptre is a library for working with struct fields.

The Fields trait records a struct's layout, and deriving it provides matching Field consts.

Downstream code, like CellExt::project, can build on this data to provide new ways to safely manipulate structs.

Dependencies

~1.5MB
~33K SLoC