Are casts encouraged in Rust?
Are casts encouraged in Rust?
Posted Jul 2, 2025 20:32 UTC (Wed) by alx.manpages (subscriber, #145117)In reply to: Are casts encouraged in Rust? by epilys
Parent article: How to write Rust in the kernel: part 2
But if there's no other way than using a cast (in constant expressions), we have a problem.
