Skip to content
Rust Search
← RustLab 2025

How to Stop Fighting with Coherence and Start Writing Context-Generic Trait Impls

RustLab Conference
RustLab 42:37 1064 views

Rust offers a powerful trait system that allows us to write highly polymorphic and reusable code. However, the restrictions of coherence and orphan rules have been a long standing problem and a source of confusion, limiting us from writing trait implementations that are more generic than they could have been. But what if we can overcome these limitations and write generic trait implementations without violating any coherence restrictions? Context-Generic Programming (CGP) is a new modular progra

Player unavailable or embedding blocked? Use the YouTube link above.