Crate zc_io

source ·
Expand description

This crate provides a zero-copy Read trait and a simplified Write trait useful for possibly no_std environments.

Macros

Constructs a new Error from an io::ErrorKind variant identifier and a &'static str.

Structs

The error type for zero-copy I/O operations of the Read and Write traits.
The IoReader<R> struct implements Read<'data> to any reader.
The IoWriter<W> struct implements Write to any I/O writer.

Traits

The Read<'data> trait allows for reading bytes with a lifetime of 'data from some source.
A simplified facade of io::Write for easier use in possibly no_std environments.

Type Definitions

A convenient alias for io::ErrorKind.
A specialized Result type for zc_io.