๐ฆ Rust Master Class - Chapter 19: Type Coercion
๐ฆ Rust Master Class - Chapter 19: Type Coercion Speed dating. Three minutes, a stranger, no expectations. But we clicked. &String becomes &str โ two different types, suddenly compatible. The compiler sees it before you do. Coercion in Rust refers to the implicit conversion of one type into another . Unlike explicit casting (using the `as` keyword), coercion happens automatically in specificโฆ
We haven't written up this one. Dev.to has the full story โ the link below goes straight to it.