arrayvec
arrayvec copied to clipboard
A vector with a fixed capacity. (Rust)
Thanks for the nice crate! Since this is an unsolicited PR, I completely understand if it is not interesting. This PR automatically documents all feature flag requirements on docs.rs. This...
Add try_push_uninit , which tries to add an additional element and provides a raw pointer to the already allocated memory. This is useful if the backing structure is larger than...
### Feature description Add new constructors to `ArrayVec` and `ArrayString`, that instead of returning initialized `Self`, write to user-provided out-pointer. ### Rationale Consider following case. I want to use a...
This code compiles with arrayvec 0.7.4: ``` use arrayvec::ArrayString; fn main() { let array_string = ArrayString::::new(); let as_ref = array_string.as_ref(); let _bytes = as_ref.as_bytes(); } ``` However, with arrayvec 0.7.5...
Hello, When a WASM exported function returns an `ArrayString`, the compiler returns `the trait bound `ArrayString: IntoWasmAbi` is not satisfied`. It would be useful to be able to return an...
Similar to #294, except it puts the changes behind a feature flag `const` and uses a macro `const_fn` to avoid code duplication. This allows the MSRV to stay low (still...
Find every `fn` which can be `const` (as of `1.83.0`) and make it so. This involved moving all the implementations out of the `ArrayVecImpl` trait, which eventually left it unused,...
Also add infrastructure to generate `src/arrayvec_copy.rs`. It works by replacing a couple of strings in `src/arrayvec.rs`. Check that the transformation is up-to-date in CI. Fixes #32. Closes #261.
This is the best effort implementation that allows pushing iterator into `ArrayString`. There is no `TryFromIterator` trait yet and `TryFrom` breaks blanket `TryFrom` impl in std, so this is the...
Add `copy_from_slice_at` similar to [copy_from_slice](https://doc.rust-lang.org/std/primitive.slice.html#method.copy_from_slice) method in `ArrayVec` would make easier to copy an existing slice array into an ArrayVec. It is similar to [try_extend_from_slice](https://docs.rs/arrayvec/latest/arrayvec/struct.ArrayVec.html#method.try_extend_from_slice) but doesn't return a Result...