-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Implement size_hint for BufReader #81052
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
b6730e9
Implement size_hint for BufReader
Xavientois 1a97be6
Fix implementation to specialize
Xavientois 6d90d99
Use helper trait to follow min_specialization rules
Xavientois edcd2ba
Add missing generic
Xavientois 3358674
Move default to trait definition
Xavientois f28dd81
Fix incorrect token
Xavientois 5c427c0
Add default keyword for specialization
Xavientois d4704c7
Add back lower_bound as memeber
Xavientois 3ad20e5
Fix semicolon
Xavientois 284f4bb
Remove exposing private trait
Xavientois af4be91
Add dyn for SizeHint cast
Xavientois 5881fc9
Fix formatting
Xavientois 6c8f0a6
Remove stable annotation
Xavientois 8321b9a
Remove unnecessary default keyword
Xavientois 6040a52
Use fully qualified syntax to avoid dyn
Xavientois 2c683ff
Implement SizeHint trait for BufReader, Emtpy, and Chain
Xavientois a544726
Add tests for SizeHint implementations
Xavientois b23feaa
Remove trailing newline
Xavientois 88bc1d4
Add space for proper indentation
Xavientois e948522
Fix formatting on mod
Xavientois File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.