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§
- Binary
Reader - Reader wrapper for binary scalar and length-prefixed string decoding.
- Binary
Writer - Writer wrapper for binary scalar and length-prefixed string encoding.
- 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.
- Leb128
Reader - Reader wrapper for LEB128 integers and LEB128 length-prefixed strings.
- Leb128
Writer - Writer wrapper for LEB128 integers and LEB128 length-prefixed strings.
- 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.
- ZigZag
Reader - Reader wrapper for ZigZag encoded signed integers.
- ZigZag
Writer - Writer wrapper for ZigZag encoded signed integers.
Enums§
- Byte
Order - Byte order used when encoding or decoding multi-byte scalar values.
- Streams
- Stream utility namespace.
Traits§
- Binary
Read Ext - Extension methods for reading binary scalar values from
Readstreams. - Binary
Write Ext - Extension methods for writing binary scalar values to
Writestreams. - BufRead
Ext - Extension methods for
BufReadvalues. - BufRead
Seek - Object-safe capability trait for values that can be buffered-read and repositioned.
- Leb128
Read Ext - Extension methods for reading LEB128 encoded integers.
- Leb128
Write Ext - Extension methods for writing LEB128 encoded integers.
- 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. - String
Read Ext - Extension methods for reading length-prefixed UTF-8 strings.
- String
Write Ext - Extension methods for writing length-prefixed UTF-8 strings.
- 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. - ZigZag
Read Ext - Extension methods for reading ZigZag encoded signed integers.
- ZigZag
Write Ext - Extension methods for writing ZigZag encoded signed integers.