Add new ArrayVec methods .take() and .into_inner_unchecked() by @conradludgate
clone_from now uses truncate when needed by @a1phyr
0.7.0
fn new_const is now the way to const-construct arrayvec and arraystring,
and fn new has been reverted to a regular "non-const" function.
This works around performance issue #182, where the const fn version did not
optimize well. Change by @bluss with thanks to @rodrimati1992 and @niklasf
for analyzing the problem.
The deprecated feature flag unstable-const-fn was removed, since it's not needed
Optimize .retain() by using the same algorithm as in std, change by @niklasf,
issue #174. Original optimization in Rust std by @oxalica in rust-lang/rust/pull/81126
0.6.1
The ArrayVec::new and ArrayString::new constructors are properly
const fns on stable and the feature flag unstable-const-fn is now deprecated.
by @rodrimati1992
Small fix to the capacity check macro by @Xaeroxe
The const generics release 🎉. Arrayvec finally implements what it
wanted to implement, since its first version: a vector backed by an array,
with generic parameters for the arbitrary element type and backing array
capacity.
The New type syntax is ArrayVec<T, CAP> where CAP is the arrayvec capacity.
For arraystring the syntax is ArrayString<CAP>.
Length is stored internally as u32; this limits the maximum capacity. The size
of the ArrayVec or ArrayString structs for the same capacity may grow
slightly compared with the previous version (depending on padding requirements
for the element type). Change by @bluss.
Arrayvec's .extend() and FromIterator/.collect() to arrayvec now
panic if the capacity of the arrayvec is exceeded. Change by @bluss.
Arraystring now implements TryFrom<&str> and TryFrom<fmt::Arguments> by
@c410-f3r
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps arrayvec from 0.5.2 to 0.7.1.
Changelog
Sourced from arrayvec's changelog.
Commits
0c866b3
0.7.1515a18c
Merge pull request #187 from conradludgate/into-inner-take0fdf39f
debug-assert16c8e4d
tests + docsdfceb6d
Merge pull request #186 from a1phyr/use_truncate_in_clone_from6dc46b3
update take8778483
feat: API additions6be5ed4
Usetruncate
inclone_from
7b290b7
DOC: Mention author@oxalica
in changelog for retain optbf4ee7e
DOC: Update 0.7.0 changelog with forgotten item #174Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)