mirror of
https://github.com/openharmony/third_party_rust_encoding_rs.git
synced 2026-07-21 02:05:23 -04:00
Link to encoding_rs_io from the docs.
This commit is contained in:
@@ -68,6 +68,13 @@ Additionally, `encoding_rs::mem` does the following:
|
||||
* Converts ASCII to UTF-16 up to the first non-ASCII byte.
|
||||
* Converts UTF-16 to ASCII up to the first non-Basic Latin code unit.
|
||||
|
||||
## Integration with `std::io`
|
||||
|
||||
Notably, the above feature list doesn't include the capability to wrap
|
||||
a `std::io::Read`, decode it into UTF-8 and presenting the result via
|
||||
`std::io::Read`. The [`encoding_rs_io`](https://crates.io/crates/encoding_rs_io)
|
||||
crate provides that capability.
|
||||
|
||||
## Licensing
|
||||
|
||||
Please see the file named
|
||||
|
||||
@@ -36,6 +36,13 @@
|
||||
//! The [repository is on GitHub](https://github.com/hsivonen/encoding_rs). The
|
||||
//! [crate is available on crates.io](https://crates.io/crates/encoding_rs).
|
||||
//!
|
||||
//! # Integration with `std::io`
|
||||
//!
|
||||
//! This crate doesn't implement traits from `std::io`. However, for the case of
|
||||
//! wrapping a `std::io::Read` in a decoder that implements `std::io::Read` and
|
||||
//! presents the data from the wrapped `std::io::Read` as UTF-8 is addressed by
|
||||
//! the [`encoding_rs_io`](https://docs.rs/encoding_rs_io/) crate.
|
||||
//!
|
||||
//! # Examples
|
||||
//!
|
||||
//! Example programs:
|
||||
|
||||
Reference in New Issue
Block a user