Hacker News new | ask | show | jobs
by tialaramex 390 days ago
I don't understand this comment at all.

Rust not only has the 'as' operator for this exact purpose, but it also has the suite of traits From, Into, TryFrom and TryInto for the infallible and fallible conversions respectively.

1 comments

As is an infix operator, it can never be invoked implicitly to draw these relationships between different types.