AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
How to Implement the From and Into Trait Directly in Your Compiler
The from and into are, I'm not sure what the right word for them is, but they're basically like opposites of each other. And you can, you can derive into from from. Actually, I don't know if that'll work. It might just be more clumsy. But anyway, generally you did never implement the into trait directly. You would just implement from and then the compiler can just kind of figure out what you're trying to do from there.