A vector with fixed capacity.
Please read the API documentation here
<object data="https://travis-ci.org/bluss/arrayvec.svg" type="image/svg+xml">build_status</object>
ArrayString
by @DenialAdams:.pop() -> Option<char>
.truncate(new_len)
.remove(index) -> char
ArrayVec::truncate()
by @niklasfArrayVec::extend
with a lower level
implementation (#74)new
to CapacityError
.Default
impl to ArrayString
by @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.RangeArgument
trait.push_unchecked()
by @niklasfArrayString
implements PartialOrd, Ord
by @tbu-use_generic_array
was dropped.PartialOrd, Ord
as well as PartialOrd<str>
for
ArrayString
.Array
for the 65536 sizeencode_utf8
from crate oddsArrayString::from_byte_string
ArrayString
’s .push(char)
-use_generic_array
which allows using their
GenericArray
just like a regular fixed size array for the storage
of an ArrayVec
.ArrayVec::insert
!
It would be buggy if self.len() < index < self.capacity()
. Take note of
the push out behavior specified in the docs.use_union
which forwards to the nodrop crate feature.is_full()
to ArrayVec
and ArrayString
..retain()
to ArrayVec
..as_slice(), .as_mut_slice()
to ArrayVec
and .as_str()
to ArrayString
.no_std
(requires Rust 1.6
to opt out).Clone::clone_from
for ArrayVec and ArrayStringArrayString::from(&str)
DerefMut
impl for ArrayString
..simplify()
to drop the element for CapacityError
..dispose()
to ArrayVec
Dual-licensed to be compatible with the Rust project.
Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 or the MIT license http://opensource.org/licenses/MIT, at your option. This file may not be copied, modified, or distributed except according to those terms.