Expand description
Parented namespace of the module.
Modules§
- popular_
types - Popular type support for common Rust types. Popular type support for component model
- std_
types - Standard library type support
Traits§
- Assign
- Provides a generic interface for setting a component of a certain type on an object.
- Assign
With Type - The
AssignWithTypetrait provides a mechanism to set a component on an object, utilizing the type information explicitly. This trait extends the functionality ofAssignby allowing implementers to specify the component’s type at the method call site, enhancing expressiveness in code that manipulates object states. - Option
Ext - Extension trait to provide a method for setting a component on an
Option< Self >if theOptionis currentlyNone. If theOptionisSome, the method will delegate to theAssigntrait’sassignmethod. - Popular
Type - Marker trait to identify types that should get popular type support
Derive Macros§
- Assign
- Derives the
Assigntrait for struct fields, allowing each field to be set with a value that can be converted into the field’s type. - Component
From - Macro to implement
Fromfor each component (field) of a structure. This macro simplifies the creation ofFromtrait implementations for struct fields, enabling easy conversion from a struct reference to its field types. - Component
Model - Unified derive macro that combines all component model functionality into a single annotation.
- Components
Assign - Derives the
ComponentsAssigntrait for a struct, enablingcomponents_assignwhich set all fields at once. - From
Components - A procedural macro to automatically derive the
From< T >trait implementation for a struct, enabling instances of one type to be converted from instances of another type.