encoding_rs_rw-0.1.2 has been yanked.
std::io::{Read, Write} wrappers for encoding_rs
This crate provides std::io::Read
and std::io::Write
implementations for
encoding_rs::Decoder
and encoding_rs::Encoder
, respectively, to support
Rust's standard streaming API.
use *;
use ;
use ;
let sjis: & = &;
let big5: & = &;
let mut reader = new;
let mut writer = new;
let mut utf8 = String new;
reader.read_to_string?;
assert_eq!;
write!?;
writer.flush?;
assert_eq!;
This crate is an alternative to encoding_rs_io
but provides a simpler API
and more flexible error semantics.
Crate features
unstable-handler
enablesEncodingWriter::with_unmappable_handler
. This feature does not require a nightly build, but the API is experimental and yet to be finalized.
License
Licensed under the Apache License, Version 2.0.