[][src]Crate fixed_len_str

This crate provides a procedural macro for declare a wrapper struct for an array with the size given by the tokens which derefs to str.

For a proper API documentation of one of length 12 see fixed_len_str_example.

If you want to use serde to serialize and deserialize the fixed_len_str use features = ["serde_support"],if you want to match a pattern of type FnMut(FixedStr$len) -> bool on a str use features = ["pattern_pred_support"] and if you want the documentation visible at the expansion use default-features = false.

Macros

fixed_len_str

A macro for declare an FixedStrinput struct.

fixed_len_str_nz

A macro for declare an FixedStrinput struct with NonZeroU8 as utf8 encoded bytes.

Attribute Macros

use_fixed_str

Searchs for ocurrences of FixedStrlen in the item and expands to calls to fixed_len_str! with len as arg at the end of the item.

use_fixed_str_nz

Searchs for ocurrences of FixedStrNZlen in the item and expands to calls to fixed_len_str_nz! with len as arg at the end of the item.