Skip to main content

Crate qubit_io

Crate qubit_io 

Source
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§

ChecksumReader
Reader wrapper that updates a checksum hasher with bytes read.
ChecksumWriter
Writer wrapper that updates a checksum hasher with bytes written.
CountingReader
Reader wrapper that counts successfully read bytes.
CountingWriter
Writer wrapper that counts successfully written bytes.
LimitReader
Reader wrapper that exposes at most a fixed number of bytes.
LimitWriter
Writer wrapper that accepts at most a fixed number of bytes.
PositionGuard
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§

BufReadExt
Extension methods for BufRead values.
BufReadSeek
Object-safe capability trait for values that can be buffered-read and repositioned.
ReadExt
Extension methods for Read values.
ReadSeek
Object-safe capability trait for values that can be read and repositioned.
ReadSeekExt
Extension methods for values that implement both Read and Seek.
ReadWrite
Object-safe capability trait for values that can be both read and written.
ReadWriteSeek
Object-safe capability trait for values that can be read, written, and repositioned.
SeekExt
Extension methods for Seek values.
WriteExt
Extension methods for Write values.
WriteSeek
Object-safe capability trait for values that can be written and repositioned.
WriteSeekExt
Extension methods for values that implement both Write and Seek.