#string #original #optimization #input #cow #rc #allocating-copying

cow-rc-str

Borrow from an original input string and avoid allocating/copying when possible

1 unstable release

0.1.0 Sep 23, 2020

#45 in #cow

MPL-2.0 license

9KB
162 lines

cow-rc-str

CowRcStr optimization for Rust. Taken from https://github.com/servo/rust-cssparser/blob/master/src/cow_rc_str.rs.

Use CowRcStr in order to borrow from an original input string and avoid allocating/copying when possible.

No runtime deps