3 ms·
Would something like this [1] be the function equivalent (not type equivalent) written in rust? A function that has a parameter of ints but will only yield num
by azemetre 3y ago
Would something like this [1] be the function equivalent (not type equivalent) written in rust?
A function that has a parameter of ints but will only yield numbers within a certain range? I guess I'm really confused by the Scala example you posted but really trying to understand.
[1] https://doc.rust-lang.org/std/convert/trait.TryFrom.html https://doc.rust-lang.org/std/convert/trait.TryFrom.html