encoding_rs_rw-0.1.0 has been yanked.
encoding_rs_rw: encoding_rs reader/writer
This crate provides std::io::Read
and std::io::Write
implementations for
encoding_rs::Decoder
and encoding_rs::Encoder
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.
License
Licensed under the Apache License, Version 2.0.