Repository navigation
Added
truncate(len)method: Addedtruncate()toFixedStrandFixedStrBuffor shortening visible string length in-place.finalize_unsafe()method: for cases requiring direct construction without UTF‑8 validation.
Changed
- Updated crate-level and function-level docs for clarity, accuracy, and consistency with actual behavior.
FixedStrBuf::finalize()now returnsFixedStrdirectly (wasResult), reflecting thatfinalize()only produces valid UTF‑8.- Implemented
From<FixedStrBuf<N>> for FixedStr<N>for ergonomic conversion from builder to fixed string. - Improved descriptions for
from_bytes,set_lossy, and other modifiers to better reflect truncation and null-termination behavior.
Removed
-
FixedStr::as_hex()andFixedStr::hex_dump(): Removed from the core type to avoid side effects and formatting logic in core APIs.Hex formatting is still available via the
fast_format_hex()anddump_as_hex()helper functions for manual use.
Fixed
- Corrected misleading note on
FixedStr::new_constto reflect that UTF‑8 is now always respected, even at compile time. - Corrected the conversion implementations for
FixedStrBuf(fromFixedStrand viaTryFrom<&[u8]>) so that the effective length (up to the first null byte) is used rather than the full array capacity. This ensures that builder operations such as appending and truncating behave correctly. - Corrected docblocks and comments referring to outdated runtime validation behavior.