devela::sys

Module io

Source
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 and io_.
  • 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 over u8 values of a reader.
  • ?std Adapter to chain together two readers.
  • ?std Wraps an in-memory buffer and provides it with a IoSeek implementation.
  • 🚩+ ?std Error type for I/O operations of IoRead, IoWrite, IoSeek, and associated traits.
  • ?std Like BufWriter, but flushing whenever a newline (0x0a, ' ') is detected.
  • std An iterator over the lines of an instance of IoBufRead.
  • std A writer which will move data into the void.
  • std A buffer type used with IoWrite::write_vectored.
  • std A buffer type used with IoRead::read_vectored.
  • 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 of Reader 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.
  • 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
  • std Creates an instance of a reader that infinitely repeats one byte.
  • std Creates an instance of a writer which will successfully consume all data.
  • std Constructs a new handle to the standard error of the current process.
  • std Constructs a new handle to the standard input of the current process.
  • std Constructs a new handle to the standard output of the current process.

Type Aliases§