Registry / utility / reflection

reflection

JSON →
library0.1.3rscratesunverified

Reflects on type's fields' names and their type names in a hierarchical tree.

# Cargo.toml [dependencies] reflection = "0.1.3"
INSTALL
IMPORT
SIG · REFLECTION
R
reflection
utilityrustv0.1.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Reflect
use reflection::Reflect;

Derive reflection for a struct and inspect its fields.

use reflection::Reflect; #[derive(Reflect)] struct MyStruct { field: u32, } fn main() { let instance = MyStruct { field: 42 }; println!("Fields: {:?}", instance.reflect()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
reflection — cargo add reflection · libregistry