cdumay_context
A flexible context management library that provides a trait-based approach for handling key-value data with support for multiple serialization formats.
Features
- Generic context management through the
Contextualizetrait and aContextstruct - Support for multiple serialization formats (with feature flags):
- JSON (feature: "json")
- TOML (feature: "toml")
- YAML (feature: "yaml")
- Type-safe error handling with the
cdumay_error::Errorstruct
Example Usage
use BTreeMap;
use ;
use ;
// Basic usage
let mut ctx = new;
ctx.insert;
Error Handling
The library provides a comprehensive error handling system through the Error enum:
use ;
use Error;
use Rng;
use ;
use BTreeMap;