Expand description
§Qubit IO
Byte-stream buffering and 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.
It also provides byte-oriented buffering primitives in buffered:
Buffer, BufferedByteInput, and BufferedByteOutput. These types
are intentionally format-agnostic. Binary and text stream adapters live in
sibling crates and build their codec-specific behavior on top of these byte
windows.
The concrete trait definitions and wrapper types live in dedicated modules and are re-exported from the crate root for ergonomic use.
Re-exports§
pub use buffered::Buffer;pub use buffered::BufferedByteInput;pub use buffered::BufferedByteOutput;pub use buffered::DEFAULT_BUFFER_CAPACITY;
Modules§
- buffered
- Shared byte-stream buffering primitives.
- 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.