Core traits for the builderx DSL (builder-pattern adapters).
These traits define how the bx! macro talks to concrete UI toolkits. Adapters
bridge between a generic builder syntax and a specific “attach child/children”
API that each toolkit exposes.
Picking an integration style
- If you control the builder type (or it already has attach semantics), implement
[
AttachChild] / [AttachChildren] and use [DefaultAdapter] for the most ergonomic path—no adapter type needed. - If the builder is foreign or needs custom glue, implement [
BxAdapter] + [CanAttach] / [CanAttachMany] on a small adapter type instead.