arrayvec
arrayvec copied to clipboard
A vector with a fixed capacity. (Rust)
Hello, This pull request adds leak() to ArrayVec, which can be useful if you want to hand out a reference to the contained data, and at the same time want...
See docs for details.
This changes the internal length type from `u32` to `u16` on 16-bit targets. On 16-bit targets larger arrays won't be used, 32-bit arithmetic can be expensive, and 4 bytes is...
This adds a small convenience function for making ArrayStrings out of null-terminated C-style byte buffers, by truncating the result to first null-terminator, if present. Of course this a pretty trivial...
👋 Hello @bluss! Thank you for making this crate; it's super useful. I don't think we can dereference an ArrayString into a &str in a constant function right now, and...
Specifically, I have an `ArrayVec`. `Waker` is two pointers, and `len` is 32 bits. On 64-bit platforms, in theory, `Option` could have the same size. But [padding cannot be used...
This fixes all the clippy lints firing for me which improves efficiency and helps new people work on the codebase.
New version of closed: https://github.com/bluss/arrayvec/pull/193 Made a copy of ArrayVec (ArrayVecCopy) that can only hold Copy items. This means copying all of its relevant functions and relevant tests. Closes https://github.com/bluss/arrayvec/issues/32