about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2025-02-07 14:53:34 +0100
committerJosh Triplett <josh@joshtriplett.org>2025-06-03 15:41:47 -0700
commit252ad18415723a7485b0e2950f1b641109c9d4ef (patch)
tree8c5e3c38903ca1cd910219b7cf9735ea53478e71 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parenta124fb3cb7291d75872934f411d81fe298379ace (diff)
downloadrust-252ad18415723a7485b0e2950f1b641109c9d4ef.tar.gz
rust-252ad18415723a7485b0e2950f1b641109c9d4ef.zip
Improve the documentation of `Display` and `FromStr`, and their interactions
In particular:
- `Display` is not necessarily lossless
- The output of `Display` might not be parseable by `FromStr`, and might
  not produce the same value if it is.
- Calling `.parse()` on the output of `Display` is usually a mistake
  unless a type's documented output and input formats match.
- The input formats accepted by `FromStr` depend on the type.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions