EmbeddingGemma 2: an open, lightweight multimodal embedding model
deepmind.google·6d ago

TL;DR
RFC 3323 introduces two features in Rust: trait implementability restrictions and field mutability controls. These enhancements allow developers to limit where traits can be implemented and how fields can be modified, improving encapsulation and safety.
✦ Why It Matters
Test RFC 3323 in your Rust projects to enhance trait safety and field mutability control.
Key Takeaways
How It Works
The impl_restriction feature allows developers to specify where a trait can be implemented using keywords like pub(crate) or impl(super). This replaces the sealed trait pattern, simplifying the code.
The mut_restriction feature allows fields to be marked as mutable only within the defining crate, enhancing safety and clarity in code design.
Related