Trait Object - CI/CD用語集の定義
trait object とは、値とそのメソッドテーブル (vtable) へのポインタを組にしたもので、単一の動的にディスパッチされる参照を通じて、異なる具体的な型に対して interface のメソッドを呼び出せるようにします。vtable の間接参照と引き換えに runtime のポリモーフィズムを得ます。
関連ガイド
Virtual Method Table - CI/CD Glossary DefinitionA vtable is a per-type table of function pointers the runtime uses to dispatch a polymorphic call to the righ…
Monomorphization - CI/CD Glossary DefinitionMonomorphization generates a specialized copy of generic code for each concrete type used, trading larger bin…
Zero-Cost Abstraction - CI/CD Glossary DefinitionA zero-cost abstraction is a high-level construct that compiles to code as efficient as a hand-written low-le…