htmlize 0.5.1

Encode and decode HTML entities in UTF-8
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[macro_export]
macro_rules! bench_func {
    ($name:ident, $func:ident, $sample:expr) => {
        #[bench]
        fn $name(bench: &mut test::Bencher) {
            let sample = $sample;
            bench.iter(|| $func(sample));
            bench.bytes = sample.len() as u64;
        }
    };
}