Skip to main content

Crate alef_adapters

Crate alef_adapters 

Source
Expand description

Adapter layer for connecting language-specific patterns to alef’s backend trait. Handles callback bridges and custom registrations.

Modules§

async_method
callback_bridge
streaming
sync_function

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_bodies so per-backend gen_bindings/mod.rs files can look up the body via the same canonical scheme.

Type Aliases§

AdapterBodies
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.