Module macro_tools::components::orphan
source · Expand description
Orphan namespace of the module.
Re-exports§
pub use super::super::components;
Traits§
- Provides a generic interface for setting a component of a certain type on an object.
- 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. - 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.