Lifetime - CI/CD用語集の定義
lifetime とは、参照が有効である期間を記述するコンパイル時の注釈です。borrow checker は lifetime を使って、どの参照もそれが指すデータより長生きできないことを証明し、runtime のコストなしで dangling pointer を排除します。
関連ガイド
Borrow Checker - CI/CD Glossary DefinitionA borrow checker statically enforces that references never outlive their data or alias mutably, catching use-…
Ownership - CI/CD Glossary DefinitionOwnership is a model where each value has a single owning binding responsible for freeing it, giving determin…
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…