We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Display
FromStr
1 parent 6a09a85 commit 5192570Copy full SHA for 5192570
library/core/src/str/traits.rs
@@ -761,6 +761,10 @@ unsafe impl SliceIndex<str> for ops::RangeToInclusive<usize> {
761
/// mistake, unless the type has provided and documented additional guarantees about its `Display`
762
/// and `FromStr` implementations.
763
///
764
+/// If a type happens to have a lossless `Display` implementation whose output is meant to be
765
+/// conveniently machine-parseable and not just meant for human consumption, then the type may wish
766
+/// to accept the same format in `FromStr`, and document that usage.
767
+///
768
/// # Examples
769
770
/// Basic implementation of `FromStr` on an example `Point` type:
0 commit comments