You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,20 +6,23 @@ All notable changes to this project will be documented in this file.
6
6
7
7
### Added
8
8
-**`truncate(len)` method:** Added `truncate()` to `FixedStr` and `FixedStrBuf` for shortening visible string length in-place.
9
+
-**`finalize_unsafe()` method:** for cases requiring direct construction without UTF‑8 validation.
9
10
10
11
### Changed
11
12
-**Updated crate-level and function-level docs** for clarity, accuracy, and consistency with actual behavior.
12
-
-**Corrected misleading note** on `FixedStr::new_const` to reflect that UTF‑8 is now always respected, even at compile time.
13
+
-**`FixedStrBuf::finalize()` now returns `FixedStr` directly** (was `Result`), reflecting that `finalize()` only produces valid UTF‑8.
14
+
-**Implemented `From<FixedStrBuf<N>> for FixedStr<N>`** for ergonomic conversion from builder to fixed string.
13
15
- Improved descriptions for `from_bytes`, `set_lossy`, and other modifiers to better reflect truncation and null-termination behavior.
14
-
16
+
15
17
### Removed
16
18
-`FixedStr::as_hex()` and `FixedStr::hex_dump()`: Removed from the core type to avoid side effects and formatting logic in core APIs.
17
19
18
20
Hex formatting is still available via the `fast_format_hex()` and `dump_as_hex()` helper functions for manual use.
19
21
20
22
### Fixed
21
-
- Corrected docblocks and comments referring to outdated runtime validation behavior.
23
+
-**Corrected misleading note** on `FixedStr::new_const` to reflect that UTF‑8 is now always respected, even at compile time.
22
24
- Corrected the conversion implementations for `FixedStrBuf` (from `FixedStr` and via `TryFrom<&[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.
25
+
- Corrected docblocks and comments referring to outdated runtime validation behavior.
0 commit comments