lifthrasiir / rust-encoding

Character encoding support for Rust
MIT License
284 stars 59 forks source link

Use Cow? #113

Open SoniEx2 opened 6 years ago

SoniEx2 commented 6 years ago

&[u8] can be converted to &str (rather than String) in some cases, and vice-versa. std::borrow::Cow would be nice.