Verified record · from the answer index

ref-cast

librarytested · static-verifiedscore 70/100signed passport ✓published 67d ago · verified 2026-10-2437,734,491 monthly downloads

Safely cast &T to &U where the struct U contains a single field of type T.

lib:crates:ref-cast · published by dtolnay · source repository