ベクタ->スライス->文字列
extern crate encoding_rs;
use encoding_rs::*;
let v = vec![0x61, 0x62, 0x63];
let (cow, encoding_used, had_errors) = UTF_8.decode(&v[..]);
println!("{:?}", cow);
ベクタ->バイト列->文字列
extern crate bytes;
extern crate encoding_rs;
use bytes::Bytes;
use encoding_rs::*;
let v = vec![0x61, 0x62, 0x63];
let b = Bytes::from(v);
let (cow, encoding_used, had_errors) = UTF_8.decode(&b);
println!("{:?}", cow);