fixed_len_str 0.3.3

A procedural macro for create a smart pointer to str backed by a fixed size array,with the size given by the tokens.
Documentation
1
2
3
4
5
6
7
8
9
#![feature(pattern)]

use fixed_str_nz3::Closure;

#[fixed_len_str::use_fixed_str_nz]
#[test]
fn b() {
    assert_eq!("aaabb".matches( Closure::from( |s: FixedStrNZ3| s == "aaa" || s == "bb" ) ).collect::<Vec<&str>>(), ["aaa"])
}