
Generics
From and Into Traits in Rust and Implementing Both Correctly
Implement From and you get Into for free. Learn the conventions, how the question mark uses From, and when TryFrom is the right trait.
7 min read
Tag
1 post

Implement From and you get Into for free. Learn the conventions, how the question mark uses From, and when TryFrom is the right trait.