You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CappedString was previously backed by a `[u8; N]`, which required zeroing the buffer on creation. It now uses a `[MaybeUninit<u8>; N]`, which does need to be zeroed. This should improve the performance of creating a new CappedString, at the cost of slightly more unsafe code required in its implementation. Additionally, `as_bytes` and `as_bytes_mut` methods were introduced. These are primarily used internally in the implementation of CappedString, but are also provided as part of the public API to allow users to do low-level operations on the underlying buffer backing the CappedString. `as_bytes_mut` is unsafe, as this method can be used to violate the UTF-8 property of the CappedString, which is undefined behaviour. |
3 years ago | |
|---|---|---|
| src | 3 years ago | |
| .gitignore | 4 years ago | |
| Cargo.toml | 3 years ago | |
| README.md | 4 years ago | |
| test.sh | 3 years ago | |
README.md
libshire
A collection of assorted Rust utilities for reuse between various projects 🦀