Crate builderx_core

Crate builderx_core 

Source
Expand description

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

Structs§

DefaultAdapter
Default adapter that delegates to AttachChild / AttachChildren. Use this when your builder already implements those extension traits.

Traits§

AttachChild
Trait for builders that can accept a single child value. Implement this on your toolkit’s builder type when you want to opt into the default adapter.
AttachChildren
Trait for builders that can accept an iterator of child values. Implement alongside AttachChild to handle spread (..iter) children efficiently.
BxAdapter
Adapter hook to make the builder DSL agnostic to concrete APIs.
CanAttach
Marker/behavior for adapter-specific single-child support.
CanAttachMany
Marker/behavior for adapter-specific multi-child support.