v_escape

Crates.iov_escape
lib.rsv_escape
version0.18.0
sourcesrc
created_at2018-11-23 22:14:48.482695
updated_at2021-10-12 00:41:50.766312
descriptionThe simd optimized escaping code
homepage
repositoryhttps://github.com/botika/v_escape
max_upload_size
id98348
size111,006
Juan Aguilar Santillana (zzau13)

documentation

https://docs.rs/v_escape

README

v_escape Documentation Latest version

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

Example

v_escape::new!(MyEscape; '<' -> "bar");

fn main() {
    let s = "foo<bar";
    
    print!("{}", MyEscape::from(s));
    assert_eq!(MyEscape::from(s).to_string(), "foobarbar");
}
Commit count: 342

cargo fmt