-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libs: make Cow usable, improve documentation
This commit makes `Cow` more usable by allowing it to be applied to unsized types (as was intended) and providing some basic `ToOwned` implementations on slice types. It also corrects the documentation for `Cow` to no longer mention `DerefMut`, and adds an example.
- Loading branch information
Showing
3 changed files
with
36 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bab9564
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at aturon@bab9564
bab9564
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging aturon/rust/cow-doc = bab9564 into auto
bab9564
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aturon/rust/cow-doc = bab9564 merged ok, testing candidate = 5ff10d5
bab9564
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/2406
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/2404
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/2397
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/2404
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/2398
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/2397
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/2397
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/2401
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/2394
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/2393
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/2396
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/2058
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/2054
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/2060
success: http://buildbot.rust-lang.org/builders/auto-win-64-opt/builds/897
success: http://buildbot.rust-lang.org/builders/auto-win-64-nopt-t/builds/891
success: http://buildbot.rust-lang.org/builders/auto-win-64-nopt-c/builds/886
bab9564
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 5ff10d5