1 unstable release
0.1.0 | Jan 5, 2020 |
---|
#26 in #safely
Used in soak
6KB
Dioptre
This crate provides struct field projection tools.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or http://www.apache.org/licenses/LICENSE-2.0)
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
~37K SLoC