0.5.2
is_empty
methods for ArrayVec and ArrayString by @nicbnTryFrom<Slice>
for ArrayVec by @paulkernfeldunstable-const-fn
to make new
methods const by @m-ou-seError::description
by @AnderEnderadd
by @hbina0.5.1
as_ptr
, as_mut_ptr
accessors directly on the ArrayVec
by @tbu- (matches the same addition to Vec
which happened in Rust 1.37).ArrayString::len
(now available directly, not just through deref to str).&mut [u8]
for encoding chars into ArrayString
(uninit best practice fix).get_unchecked_mut
where the target may be uninitialized everywhere relevant in the ArrayVec implementation (uninit best practice fix).ArrayVec::dispose
is now deprecated (it has no purpose anymore)0.4.12
get_unchecked_mut
where the target may be uninitialized everywhere relevant in the ArrayVec implementation.0.5.0
MaybeUninit
(now unconditionally) in the implementation of ArrayVec
MaybeUninit
(now unconditionally) in the implementation of ArrayString
serde
.Array
trait interface, and it is now easier to use for users outside the crate.FromStr
impl for ArrayString
by @despawnerertry_extend_from_slice
to ArrayVec
, which is always effecient by @Thomasdezeeuw.remaining_capacity
by @Thomasdezeeuwextend
method.drop_in_place
for truncate and clear methods. This affects drop order and resume from panic during drop.MaybeUninit
improvements.0.4.11
MaybeUninit
. This extends the soundness work introduced in 0.4.9, we are finally able to use this in stable. We use feature detection (build script) to enable this at build time.0.4.10
repr(C)
in the union
version that was introduced in 0.4.9, to allay some soundness concerns.0.4.9
union
in the implementation on when this is detected to be supported (nightly only for now). This is a better solution for treating uninitialized regions correctly, and we'll use it in stable Rust as soon as we are able. When this is enabled, the ArrayVec
has no space overhead in its memory layout, although the size of the vec should not be relied upon. (See #114)ArrayString
updated to not use uninitialized memory, it instead zeros its backing array. This will be refined in the next version, since we need to make changes to the user visible API.use_union
feature now does nothing (like its documentation foretold).0.4.8
Implement Clone and Debug for IntoIter
by @clarcharr
Add more array sizes under crate features. These cover all in the range up to 128 and 129 to 255 respectively (we have a few of those by default):
array-size-33-128
array-size-129-255
0.4.7
drop_in_place
when dropping the arrayvec by-value iterator0.3.25
0.4.6
0.3.24
0.4.5
Add methods to ArrayString
by @DenialAdams:
.pop() -> Option<char>
.truncate(new_len)
.remove(index) -> char
Remove dependency on crate odds
Document debug assertions in unsafe methods better
0.4.4
ArrayVec::truncate()
by @niklasf0.4.3
ArrayVec::extend
with a lower level implementation (#74)0.4.2
new
to CapacityError
.0.4.1
Default
impl to ArrayString
by @tbu-0.4.0
Reformed signatures and error handling by @bluss and @tbu-:
ArrayVec
's push, insert, remove, swap_remove
now match Vec
's corresponding signature and panic on capacity errors where applicable.try_push, insert
and checked methods pop_at, swap_pop
.ArrayString
's push methods.Use a local version of the RangeArgument
trait
Add array sizes 50, 150, 200 by @daboross
Support serde 1.0 by @daboross
New method .push_unchecked()
by @niklasf
ArrayString
implements PartialOrd, Ord
by @tbu-
Require Rust 1.14
crate feature use_generic_array
was dropped.
0.3.23
PartialOrd, Ord
as well as PartialOrd<str>
for ArrayString
.0.3.22
Array
for the 65536 size0.3.21
encode_utf8
from crate oddsArrayString::from_byte_string
0.3.20
ArrayString
’s .push(char)
-0.3.19
use_generic_array
which allows using their GenericArray
just like a regular fixed size array for the storage of an ArrayVec
.0.3.18
ArrayVec::insert
! It would be buggy if self.len() < index < self.capacity()
. Take note of the push out behavior specified in the docs.0.3.17
use_union
which forwards to the nodrop crate feature.is_full()
to ArrayVec
and ArrayString
.0.3.16
.retain()
to ArrayVec
..as_slice(), .as_mut_slice()
to ArrayVec
and .as_str()
to ArrayString
.0.3.15
no_std
(requires Rust 1.6 to opt out).Clone::clone_from
for ArrayVec and ArrayString0.3.14
ArrayString::from(&str)
0.3.13
DerefMut
impl for ArrayString
..simplify()
to drop the element for CapacityError
..dispose()
to ArrayVec
0.3.12
0.3.11
0.3.10
0.3.8
0.3.7