- Fixes
FixedString<u32>::from_static_trunciterating down from u32::MAX. - Improves the
Debugimplementation forFixedString. - Implements
From<FixedString>forBox<str>. - Improves the
From<Cow<'_, str>>forFixedStringimplementation to always borrow staticFixedStrings.
Thanks to Joshix-1 and DPlayer234 on GitHub for these improvements.
- Implements
TryFrom<Vec<T>>forFixedArray<T>, andTryFrom<String>forFixedString. - Fixes
FixedString::from_static_truncpanicking on char boundaries when truncating. - Implements
From<char>forFixedString.
Thanks to Joshix-1 on GitHub for these improvements.
- Fixes
FixedArray<ZST, LenT>::is_empty, as it was not updated after theNonZerooptimisation was removed.
- Removes a useless
NonZerooptimisation, fixingFixedArray<ZST, LenT>.
- Implements conversions from
FixedArrayandFixedStringtoCow::Borrowed
- Implements
ToArrayStringforFixedString<u8>under a feature gate.
- Documents Minimum Supported Rust Version
- Implements
std::error::ErrorforInvalidLengthandInvalidStrLength.
- Implements
FromStrforFixedString.
- Implements
clone_fromforFixedStringandFixedArray.
- Removes the
Index<usize>implementation fromFixedArray. - Implements a
&'static strvariant ofFixedStringcreated withFixedString::from_str_static.
- Returns LenT from
FixedArray::lenandFixedString::len, instead ofu32. - Implements indexing a
FixedArraywithLenT, alongside theusizeindexing implementation. - Implements no-std support, with an optional
stdfeature enabled by default. - Implements
Borrow<str>forFixedString, allowing aHashMapofFixedStringto be looked up via&str.
- Improves FixedString to gain another SSO inline character. This comes at a tiny CPU performance hit that can be counteracted with the
nightlyfeature. - Improves FixedString deserialisation to take advantage of SSO more.
- Implements
From<[T]; 0..=16>for FixedArray.
- Redesigns the API to make truncation explicit, either via
from_*_truncortrunc_into.
- Implements
From<Cow<'_, str/[T]>>for FixedString/Array, returning Owned Cows. - Implements
TryFrom<Box<str>>for FixedString, to allow constructing it without logging features. - Implements SSO for FixedString, reducing allocations and shrinking memory usage.
- Reduces compile time more, with more logic split out of generics.
- Reduces compile time by splitting logic out of generics.
- Attempts to fix documentation on docs.rs not showing features.
- Fix compilation with only serde feature enabled.