Module binrw::io

source ·
Expand description

Traits, helpers, and type definitions for core I/O functionality.

By default, this module simply re-exports the parts of std::io that are used by binrw. In no_std environments, a compatible subset API is exposed instead.

Modules

Structs

  • A wrapper to add buffering to a read stream.
  • An iterator over u8 values of a reader.
  • A Cursor wraps an in-memory buffer and provides it with a Seek implementation.
  • The error type for I/O operations of the Read, Write, Seek, and associated traits.
  • A wrapper that provides a limited implementation of Seek for unseekable Read and Write streams.
  • Read adapter which limits the bytes read from an underlying reader, with seek support.

Enums

  • A list specifying general categories of I/O error.
  • Enumeration of possible methods to seek within an I/O object.

Traits

  • The Read trait allows for reading bytes from a source.
  • The Seek trait provides a cursor which can be moved within a stream of bytes.
  • An extension trait that implements take_seek() for compatible streams.
  • A trait for objects which are byte-oriented sinks.

Type Definitions