qubit_text_io/lib.rs
1/*******************************************************************************
2 *
3 * Copyright (c) 2026 Haixing Hu.
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * Licensed under the Apache License, Version 2.0.
8 *
9 ******************************************************************************/
10//! # Qubit Text IO
11//!
12//! Text-oriented I/O traits and adapters for Rust.
13//!
14//! This crate defines small traits for code that produces or consumes Unicode
15//! text without choosing the final byte encoding or storage destination. It also
16//! provides adapters for in-memory text, UTF-8 byte streams, and explicit
17//! `encoding_rs` encodings.
18
19mod adapters;
20mod coding_error_policy;
21mod line_ending;
22pub mod prelude;
23mod traits;
24
25pub use adapters::{
26 EncodedTextReader,
27 EncodedTextWriter,
28 StrTextReader,
29 StringTextReader,
30 StringTextWriter,
31 Utf8TextReader,
32 Utf8TextWriter,
33};
34pub use coding_error_policy::CodingErrorPolicy;
35pub use line_ending::LineEnding;
36pub use traits::{
37 TextLineRead,
38 TextRead,
39 TextWrite,
40};