Expand description
§abi-vtable-macro — shadow-mode vtable generation
Shadow mode: annotate a trait and every companion entity of the abi-mode protocol is generated automatically — no manual steps. Usage is as frictionless as the native (dyn) mode.
§When to use which mode
- Rust-only → native (dyn) mode: fastest and lightest, direct fat pointers, Arc ref-counting, no vtable struct at all.
- Cross-language (C/C++/Zig/…) → this (abi) mode: the generated
#[repr(C)]vtable is the language-neutral contract.