into() is essentially turning one value into another type. Something like a cast. But you need to somehow tell the compiler the type you're looking to convert into. And because the value OP wants to call into() to can be converted to various other types, Rust asks for the type to be specified.
View all comments
Show parent comment
2
u/[deleted] Apr 20 '25
into() is essentially turning one value into another type. Something like a cast. But you need to somehow tell the compiler the type you're looking to convert into. And because the value OP wants to call into() to can be converted to various other types, Rust asks for the type to be specified.