The simd optimized escape code
Crate v_escape provides a macro new_escape!
that define a escaping functionalities.
These macros are optimized using simd by default, but this can be altered using sub-attributes.
- Documentation
- Cargo package: v_escape
- Minimum supported Rust version: 1.42 or later
new_escape!(MyEscape, "62->bar");
fn main() {
let s = "foo<bar";
print!("{}", MyEscape::from(s));
}