Expand description
I/O functionality.
Extends: std::{io}
§Derived work
This module includes derived work from the
no_std_io
crate
(a fork of the core2
crate),
including the following modifications:
- removed
memchr
dependency. - prefix items with
Io
andio_
. - replace not very sound implementations using
Initializer
with safer ones. - add safe and unsafe internal implementations of previously only unsafe ones.
- replaced extensive documentation copied from
std
by links to original docs. - remove impls and conversions of recreated types for the replaced
std
types.
Structs§
?std
Adds buffering to any reader.?std
Wraps a writer and buffers its output.?std
An iterator overu8
values of a reader.?std
Adapter to chain together two readers.?std
Wraps an in-memory buffer and provides it with aIoSeek
implementation.?std
LikeBufWriter
, but flushing whenever a newline (0x0a
,' '
) is detected.- IoLines
std
std
An iterator over the lines of an instance ofIoBufRead
. - IoSink
std
std
A writer which will move data into the void. - IoSlice
std
std
A buffer type used withIoWrite::write_vectored
. - IoSlice
Mut std
std
A buffer type used withIoRead::read_vectored
. - IoSplit
std
std
An iterator over the contents of an instance of BufRead split on a particular byte. ?std
Reader adapter which limits the bytes read from an underlying reader.
Enums§
- 🚩+
?std
A list specifying general categories of I/O error.
Traits§
?std
A type ofRead
er which has an internal buffer.?std
Allows for reading bytes from a source.?std
Provides a cursor which can be moved within a stream of bytes.?std
A trait for objects which are byte-oriented sinks.
Functions§
?std
Copies the entire contents of a reader into a writer.- io_
empty std
std
Creates a value that is always at EOF for reads, and ignores all data written. std
Read all bytes from a reader into a new String- io_
repeat std
std
Creates an instance of a reader that infinitely repeats one byte. - io_sink
std
std
Creates an instance of a writer which will successfully consume all data. - io_
stderr std
std
Constructs a new handle to the standard error of the current process. - io_
stdin std
std
Constructs a new handle to the standard input of the current process. - io_
stdout std
std
Constructs a new handle to the standard output of the current process.