v_escape_derive

Crates.iov_escape_derive
lib.rsv_escape_derive
version0.9.1
sourcesrc
created_at2018-12-19 03:17:27.339663
updated_at2021-10-12 01:08:07.492186
descriptionProcedural macro package for v_escape
homepage
repositoryhttps://github.com/botika/v_escape
max_upload_size
id102628
size39,367
core (github:rust-iendo:core)

documentation

https://docs.rs/v_escape_derive

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