IMixin
- class constructs.IMixin(*args, **kwargs)
Bases:
ProtocolA mixin is a reusable piece of functionality that can be applied to constructs to add behavior, properties, or modify existing functionality without inheritance.
Methods
- apply_to(construct)
Applies the mixin functionality to the target construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Determines whether this mixin can be applied to the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool