about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-06-04 07:54:30 +0200
committerGitHub <noreply@github.com>2025-06-04 07:54:30 +0200
commit3e7d5aaef5ebd34355a87f2d1d65f02aa4b9d816 (patch)
treea52f60b7c2f949e0009738ea24468946ec04a11b /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent792fc2b033aea7ea7b766e38bdc40f7d6bdce8c3 (diff)
parent742014e7e3576f3053e7c63fc930c4d5b5b7a477 (diff)
downloadrust-3e7d5aaef5ebd34355a87f2d1d65f02aa4b9d816.tar.gz
rust-3e7d5aaef5ebd34355a87f2d1d65f02aa4b9d816.zip
Rollup merge of #136687 - joshtriplett:improve-display-and-fromstr-docs, r=Amanieu
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.

This documentation adds no API surface area and makes no guarantees about stability. To the best of my knowledge, everything it says is already established to be true. As such, I don't think it needs an FCP.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions