Expand description
§Qubit IO
Small I/O trait utilities for Rust.
This crate provides named, object-safe composition traits for common
std::io capability combinations and small extension traits for recurring
standard-library I/O patterns. The concrete trait definitions live in
dedicated modules and are re-exported from the crate root for ergonomic use.
Modules§
- prelude
- Common extension and composition traits for Qubit IO users.
Structs§
- Checksum
Reader - Reader wrapper that updates a checksum hasher with bytes read.
- Checksum
Writer - Writer wrapper that updates a checksum hasher with bytes written.
- Counting
Reader - Reader wrapper that counts successfully read bytes.
- Counting
Writer - Writer wrapper that counts successfully written bytes.
- Limit
Reader - Reader wrapper that exposes at most a fixed number of bytes.
- Limit
Writer - Writer wrapper that accepts at most a fixed number of bytes.
- Position
Guard - Guard that restores a seekable stream to its original position.
- TeeReader
- Reader wrapper that mirrors read bytes into a branch writer.
- TeeWriter
- Writer wrapper that mirrors accepted bytes into a branch writer.
Enums§
- Streams
- Stream utility namespace.
Traits§
- BufRead
Ext - Extension methods for
BufReadvalues. - BufRead
Seek - Object-safe capability trait for values that can be buffered-read and repositioned.
- ReadExt
- Extension methods for
Readvalues. - Read
Seek - Object-safe capability trait for values that can be read and repositioned.
- Read
Seek Ext - Extension methods for values that implement both
ReadandSeek. - Read
Write - Object-safe capability trait for values that can be both read and written.
- Read
Write Seek - Object-safe capability trait for values that can be read, written, and repositioned.
- SeekExt
- Extension methods for
Seekvalues. - Write
Ext - Extension methods for
Writevalues. - Write
Seek - Object-safe capability trait for values that can be written and repositioned.
- Write
Seek Ext - Extension methods for values that implement both
WriteandSeek.