inspect-core 0.1.0

Core types and traits for the inspect-rs introspection system
Documentation
  • Coverage
  • 100%
    64 out of 64 items documented3 out of 3 items with examples
  • Size
  • Source code size: 36.67 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.48 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • programmersd21/inspect-rs
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • programmersd21

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 inspect_core::{Inspect, InspectCx};

let value = 42u32;
let mut cx = InspectCx::new();
let inspected = value.inspect(&mut cx);

assert_eq!(inspected.kind().name(), "u32");