Module :: component_model
A flexible component model for Rust supporting generic assignment and type-based field access.
Installation
Add component_model
to your Cargo.toml
:
Minimal Example: Using Assign
use Assign;
API Overview
- Assign: Generic trait for assigning values to struct fields by type.
- AssignWithType: Trait for assigning values with explicit type annotation.
- ComponentsAssign: Trait for assigning multiple components at once.
See component_model_types documentation for details.
Where to Go Next
- Examples Directory: Explore practical, runnable examples.
- API Documentation (docs.rs): Get detailed information on all public types, traits, and functions.
- Repository (GitHub): View the source code, contribute, or report issues.