std_shims

Module io

Source

Modules§

Structs§

  • The BufReader<R> struct adds buffering to any reader.
  • Wraps a writer and buffers its output.
  • An iterator over u8 values of a reader.
  • Adapter to chain together two readers.
  • A Cursor wraps an in-memory buffer and provides it with a Seek implementation.
  • Empty ignores any data written via Write, and will always be empty (returning zero bytes) when read via Read.
  • The error type for I/O operations of the Read, Write, Seek, and associated traits.
  • An error returned by BufWriter::into_inner which combines an error that happened while writing out the buffer, and the buffered writer object which may be used to recover from the condition.
  • A buffer type used with Write::write_vectored.
  • A buffer type used with Read::read_vectored.
  • Wraps a writer and buffers output to it, flushing whenever a newline (0x0a, '\n') is detected.
  • An iterator over the lines of an instance of BufRead.
  • A reader which yields one byte over and over and over and over and over and…
  • Sinkstd
    A writer which will move data into the void.
  • An iterator over the contents of an instance of BufRead split on a particular byte.
  • A handle to the standard error stream of a process.
  • A locked reference to the Stderr handle.
  • A handle to the standard input stream of a process.
  • A locked reference to the Stdin handle.
  • A handle to the global standard output stream of the current process.
  • A locked reference to the Stdout handle.
  • Takestd
    Reader adapter which limits the bytes read from an underlying reader.
  • Error returned for the buffered data from BufWriter::into_parts, when the underlying writer has previously panicked. Contains the (possibly partly written) buffered data.
  • BorrowedBufExperimentalstd
    A borrowed byte buffer which is incrementally filled and initialized.
  • BorrowedCursorExperimentalstd
    A writeable view of the unfilled portion of a BorrowedBuf.

Enums§

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

Traits§

  • A BufRead is a type of Reader which has an internal buffer, allowing it to perform extra ways of reading.
  • Trait to determine if a descriptor/handle refers to a terminal/tty.
  • Readstd
    The Read trait allows for reading bytes from a source.
  • Seekstd
    The Seek trait provides a cursor which can be moved within a stream of bytes.
  • A trait for objects which are byte-oriented sinks.

Functions§

  • copystd
    Copies the entire contents of a reader into a writer.
  • Creates a value that is always at EOF for reads, and ignores all data written.
  • Reads all bytes from a reader into a new String.
  • Creates an instance of a reader that infinitely repeats one byte.
  • sinkstd
    Creates an instance of a writer which will successfully consume all data.
  • Constructs a new handle to the standard error of the current process.
  • Constructs a new handle to the standard input of the current process.
  • Constructs a new handle to the standard output of the current process.

Type Aliases§