maxlen
Length-bounded wrappers over standard types.
This crate provides several types that enforce length limits at the type level:
BSlice<T, MAX>is a[T]but guaranteed to not have more thanMAXelements.BVec<T, MAX>is aVec<T>but guaranteed to not have more thanMAXelements.BStr<MAX, E>is astrbut guarantees that the text will not be longer thanMAXbytes in the specified encoding (not necessarily UTF-8).BString<MAX, E>is aStringbut guarantees that the text will not be longer thanMAXbytes in the specified encoding (not necessarily UTF-8).