-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
fmt::Debug
implementations to various types. (#2784)
### What Adds `std::fmt::Debug` implementations to: * `RecordingStream` * `RecordingStreamBuilder` * `FileSink` * `MemorySink` * `BufferedSink` * `TcpSink` Most of these do not add very much useful information, but having the implementations means that users are not blocked from using `#[derive(Debug)]` on _their_ structs. It is general [good practice](https://rust-lang.github.io/api-guidelines/interoperability.html#types-eagerly-implement-common-traits-c-common-traits) in Rust to implement `Debug` for all public types where this is at all reasonable. (I added a printable address field to `TcpSink` since that's very cheap, but did not add one to `FileSink` because it would require cloning the path. Perhaps that's not drawing the best line.) ### Checklist * [X] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [X] I've included a screenshot or gif (if applicable) --------- Co-authored-by: Clement Rey <[email protected]>
- Loading branch information
Showing
4 changed files
with
79 additions
and
7 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
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