CowRcStr optimization for Rust. Taken from https://github.com/servo/rust-cssparser/blob/master/src/cowrcstr.rs.
Use CowRcStr in order to borrow from an original input string and avoid allocating/copying when possible.