facet-reflect 0.31.6

Allows peeking (reading from) and poking (writing to) types that implement Facet
Documentation

facet-reflect

Coverage Status crates.io documentation MIT/Apache-2.0 licensed Discord

Whereas the core facet crate provides essential traits like Facet itself, and data structures like Type, StructType, Field, etc., facet-reflect uses that information about the shape of types to allow:

  • Read-only access to already-initialized values (via [Peek])
  • Construction of values from scratch (via [Partial])

This allows, respectively, serialization and deserialization, without risking breaking invariants in types that implement Facet.

Sponsors

Thanks to all individual sponsors:

...along with corporate sponsors:

...without whom this work could not exist.

Special thanks

The facet logo was drawn by Misiasart.

License

Licensed under either of:

at your option.