23 releases
0.9.1 | Oct 12, 2021 |
---|---|
0.8.5 | Oct 11, 2021 |
0.8.4 | Oct 11, 2020 |
0.8.1 | Jun 22, 2020 |
0.2.1 | Dec 27, 2018 |
#122 in #escaping
9,252 downloads per month
Used in 118 crates
(via v_escape)
28KB
769 lines
v_escape
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
- Documentation
- Cargo package: v_escape
- Minimum supported Rust version: 1.42 or later
Example
v_escape::new!(MyEscape; '<' -> "bar");
fn main() {
let s = "foo<bar";
print!("{}", MyEscape::from(s));
assert_eq!(MyEscape::from(s).to_string(), "foobarbar");
}
Dependencies
~1.5MB
~37K SLoC