Expand description
Adapter layer for connecting language-specific patterns to alef’s backend trait. Handles callback bridges and custom registrations.
Modules§
Functions§
- build_
adapter_ bodies - Build a map of adapter-generated method/function bodies for a language.
- stream_
adapter_ body_ key - Get the key for looking up a streaming adapter’s method body.
- stream_
struct_ key - Build the streaming-struct lookup key for an adapter. Mirrors the writer in
build_adapter_bodiesso per-backendgen_bindings/mod.rsfiles can look up the body via the same canonical scheme.
Type Aliases§
- Adapter
Bodies - Key: “TypeName.method_name” for methods, “function_name” for free functions. For streaming adapters, an additional entry “Owner.adapter_name.stream_struct” (or “adapter_name.stream_struct” when no owner is set) holds the iterator struct definition. The adapter-name qualifier is required so that multiple streaming adapters declared on the same owner with the same item_type each get their own iterator/handle struct instead of colliding under a shared item_type key.