ggstd/io/
mod.rs

1// Copyright 2023 The rust-ggstd authors.
2// Copyright 2009 The Go Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style
4// license that can be found in the LICENSE file.
5
6//! Package io provides basic interfaces to I/O primitives.
7//! Its primary job is to wrap existing implementations of such primitives,
8//! such as those in package os, into shared public interfaces that
9//! abstract the functionality, plus some other related primitives.
10//!
11//! Because these interfaces and primitives wrap lower-level operations with
12//! various implementations, unless otherwise informed clients should not
13//! assume they are safe for parallel execution.
14
15pub mod io;
16
17pub use io::{
18    copy, copy_buffer, copy_n, err_no_progress, is_eof, is_short_write_error, is_unexpected_eof,
19    new_error_short_write, read_all, read_full, write_string, ByteReader, Discard, IoRes, Reader,
20    Seek, EOF,
21};
22
23#[cfg(test)]
24mod io_test;