Open smoelius opened 4 years ago
Some types feature a to_string method. Example: https://github.com/trailofbits/x-audit-blockstack-core/blob/e2d3d5bae539d242851620e28129af6c4a9de642/src/chainstate/stacks/index/mod.rs#L101-L112 This is morally equivalent to implementing the ToString trait. But the documentation for that trait states:
to_string
ToString
This trait is automatically implemented for any type which implements the Display trait. As such, ToString shouldn't be implemented directly: Display should be implemented instead, and you get the ToString implementation for free.
Some types feature a
to_string
method. Example: https://github.com/trailofbits/x-audit-blockstack-core/blob/e2d3d5bae539d242851620e28129af6c4a9de642/src/chainstate/stacks/index/mod.rs#L101-L112 This is morally equivalent to implementing theToString
trait. But the documentation for that trait states: