4 ms·
This sound nice and simple. I moving to arenas but is a extra complexity. Can you show how is done? (ie:code!)
by mamcx 5y ago
This sound nice and simple. I moving to arenas but is a extra complexity. Can you show how is done? (ie:code!)
- brabel 5y agohttps://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=6d98ea7c6922c8c42aaf2d681ac24e5a https://play.rust-lang.org/?version=stable&mode=debug&editio... This loses the whitespace and consequently positions... but should be enough to get you started... I use a UTF-8 crate to split words which keeps all whitespace, so I can keep positions correctly, in case you want to do that: https://unicode-rs.github.io/unicode-segmentation/unicode_segmentation/index.html https://unicode-rs.github.io/unicode-segmentation/unicode_se...