#reflection #schema #tree #type

reflection

reflects of type's fields' names and their type names in a hierarchical tree

4 releases

Uses old Rust 2015

0.1.3 Sep 26, 2018
0.1.2 Aug 16, 2018
0.1.1 Jul 2, 2018
0.1.0 Jun 9, 2018

#8 in #reflect

Download history 292/week @ 2024-12-16 81/week @ 2024-12-23 71/week @ 2024-12-30 203/week @ 2025-01-06 250/week @ 2025-01-13 306/week @ 2025-01-20 104/week @ 2025-01-27 102/week @ 2025-02-03 86/week @ 2025-02-10 54/week @ 2025-02-17 51/week @ 2025-02-24 30/week @ 2025-03-03 48/week @ 2025-03-10 47/week @ 2025-03-17 37/week @ 2025-03-24 16/week @ 2025-03-31

149 downloads per month
Used in 2 crates

MIT license

20KB
372 lines

This library produces type schema information, including field names and type names in hierarchical tree structure, which reflects the type definitions.

To avoid circular type definition, the pointer types( raw/smart pointers, references etc ) will be treated as terminal types, unless using expand() to get the referenced type's schemata().

Example

See fn serde_issue_345() for generating pretty print format from schemata().


The reflection crate currently provides reflection of field names and type names.

Quickstart

Licensed under MIT.

Dependencies

~235KB