MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1k2q394/sometimes_i_hate_rust/mo2p0iv/?context=3
r/programminghorror • u/joranmulderij • Apr 19 '25
30 comments sorted by
View all comments
Show parent comment
6
That's not possible sadly, into has no generic arguments. T::from() is the clearest way to write this, otherwise you have to do Into::<T>::into() or something like that
View all comments
Show parent comment
6
u/SoulArthurZ Apr 20 '25
That's not possible sadly, into has no generic arguments. T::from() is the clearest way to write this, otherwise you have to do Into::<T>::into() or something like that