-
Notifications
You must be signed in to change notification settings - Fork 341
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
[tracking] fmt #247
Comments
@dignifiedquire as we've talked about in chat, I agree with the reasoning here and we should indeed create a new I'll update your initial comment to include a list of things to port, and label this as a tracking issue. |
245: feat: missing Read and Write methods r=yoshuawuyts a=dignifiedquire Ref: #131 - [x] Read::by_ref - [x] Read::bytes - [x] Read::chain - [x] Read::take - [ ] Write::by_ref - [ ] ~~Write::write_fmt~~ postponed until #247 is solved Needs fixing: - [x] `BufRead` for `Take` - [x] `BufRead` for `Chain` - [ ] `by_ref` conflict between `Read` and `Write`, unable to add both, as they conflict, and the current state of things does not allow to differentiate between the two. Co-authored-by: dignifiedquire <[email protected]>
I don't think we need an async version of The only part of |
Just checked the signatures and I think I'm mostly agreeing here tbh. The macro seems relatively straight forward too: https://doc.rust-lang.org/src/core/macros.rs.html#388-390. Okay yeah I'm on board with not implementing @dignifiedquire how does this sound? |
When trying to implement
io::Write::write_fmt
, I ran into the issue that the implementation requires the use of a secondWrite
trait, the one infmt
.If we want to properly implement this, I believe an async version of that is required as well, which in turn triggers usages like implementing the
write!
macro in an async form.Ref: #245 #131
Usage: https://github.com/rust-lang/rust/blob/master/src/libstd/io/mod.rs#L1412
Tracking List
Structs
Arguments
(re-export)DebugList
(re-export)DebugMap
(re-export)DebugSet
(re-export)DebugStruct
(re-export)DebugTuple
(re-export)Error
(re-export)Formatter
(re-export)Enums
Alignment
(re-export)Traits
Binary
(re-export)Debug
(re-export)Display
(re-export)LowerExp
(re-export)LowerHex
(re-export)Octal
(re-export)Pointer
(re-export)UpperExp
(re-export)UpperHex
(re-export)Write
Functions
fmt::format
(re-export)fmt::write
Type Defintions
Result
(re-export)The text was updated successfully, but these errors were encountered: