Crate zc_io

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§

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

Structs§

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

Traits§

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

Type Aliases§

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