Expand description
Type-erased typed-config storage for crate::app::App.
Two pieces work together:
ErasedConfig—Arc<dyn Any + Send + Sync>storage soArc::downcastcan recoverArc<Config<C>>sharing the same allocation as the trait object (cheap clone, single refcount).TypedConfigOps— captured-at-builder-time closures that render the schema and the merged value asserde_json::Value, without consumers needing to knowC. Thertb-cliconfig subtree reads these to drive the schema-awareshow / get / set / schema / validateleaves.
See docs/development/specs/2026-05-09-v0.4.1-scope.md §3 for
the design rationale (option (a) — type-erased App with
Any-downcast plus closure-based ops).
Structs§
- Typed
Config Ops - Type-erased view onto a wired typed config.
Functions§
- erase
- Wrap a
Config<C>as anErasedConfigfor storage oncrate::app::App. Used byApp::newandTestAppBuilder.
Type Aliases§
- Erased
Config - Type-erased config storage.