arrayvec icon indicating copy to clipboard operation
arrayvec copied to clipboard

A vector with a fixed capacity. (Rust)

Results 90 arrayvec issues
Sort by recently updated
recently updated
newest added

It's really a lot of work being done This PR resolves #247, supersedes #248 However, some things are broken: type inference won't work for `ArrayVec::from([0; N])` like before some functions...

breaking-change

I need to have some constant structures that have a field ArrayString field, how am I supposed to set the value of such structures when new_const does not take any...

enhancement
help wanted

Hi, I noticed that `len` is arranged after `xs` ```rust pub struct ArrayVec { // the `len` first elements of the array are initialized xs: [MaybeUninit; CAP], len: LenUint, }...

Currently it encodes the character to utf8 in anyway instead of `memcpy` for ascii characters. Although `String::push` has some optimizations. https://doc.rust-lang.org/std/string/struct.String.html#method.push ```rust pub fn push(&mut self, ch: char) { match...

Add `len_u16` and `len_u8` features to change the type of `LenUint`. Using `u8` as `LenUint` saves 3 bytes. This is useful for many really small strings.

I want to use `ArrayString` to present very small strings, with about 3~15 length. `u8` is enough for the length, while `u32` is too bigger, taking 3 more bytes. How...

I have a use case that requires me to construct an `ArrayString` from a UTF-8 `ArrayVec`. For `Vec` to `String`, I would use `String::from_utf8`, but the closest equivalent is `ArrayString::from_byte_string`,...