Core types and traits for the inspect-rs introspection system.
This crate provides the fundamental [Inspect] trait and associated types
for building structured introspection of Rust values without coupling to
debuggers, serializers, or specific UI frameworks.
Overview
The core model is:
Rust value
↓
Inspect::inspect()
↓
ValueRef (borrowed structured representation)
↓
renderers / tooling / analysis
Design principles
- Lazy: Values are not eagerly traversed
- Zero-copy: Borrows from original values where possible
- Safe: Handles cycles, respects limits, protects secrets
- Minimal: Zero runtime dependencies
Example
use ;
let value = 42u32;
let mut cx = new;
let inspected = value.inspect;
assert_eq!;