3 ms·
In rust you can do this but they are namespaced with the name of the struct. So you can do Object::fun(obj)
by Yujf 4y ago
In rust you can do this but they are namespaced with the name of the struct. So you can do Object::fun(obj)
- CGamesPlay 4y agoYou can also `use Object::*` to be able to do this without prefixing. Also, you can throw use statements into functions, so this is pretty useful in specific cases.