Crate fixed_len_str

Source
Expand description

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§

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

Attribute Macros§