3 ms·
Rust does not have implicit type conversions.
by dthul 6y ago
Rust does not have implicit type conversions.
- pjmlp 6y agoVia Deref.
- dthul 6y agoNot in practice. It's only used for reference coercions to existing objects. You would need to ignore the documentation and bend over backwards to use it for an actual type conversion, because you can only return references.
- pjmlp 6y agoBending backwards is a synonym to code quality delivered by consulting/offshoring projects across most big corporations.