* slight changes functions that use drain
* bug in arrayvec iter
* reverse iter for arrayvec
* nth_back is stable since 1.37
* simpler drain for arrayvec
* soveu forgot to add changed files
* fmt + feature for rustc >= 1.40
* cosmetic changes
* does the ci work now?
* SHNAAAAAAAAATSEEEEEEEEL
* Add ArrayVec::splice and TinyVec::splice
Added for closer API parity with std::Vec
* Fix ArrayVec::splice example typo
* Removed FusedIterator bound from splice
This bound could've caused confusing error messages, and was
inconsistent with the Vec API. splice now uses fuse itself to ensure
consistency. Vec::splice consumes the whole iterator at once, so it
essentially has the same behavior, but this implementation gradually
consumes the iterator as elements are drained, so this fuse is necessary
to keep the behavior the same.
* Reserve additional capacity in TinyVecSplice
Used TinyVec::reserve to pre-allocate space for elements being spliced
into the TinyVec after the splicing iterator is dropped. Used the lower
bound like Vec's splice does.
* Run rustfmt
* change behavior on extend_from_slice, append
* preallocation in extend()
* append v2
* obviously
* fix resize_with
* try_functions and to_vec on arrayvec
* shrink_to_fit
* bit of cleaning
* cosmetic changes
* use asserts instead of if-panics
* I promise, this is the last commit
* examples, tests
* matches macro exists since rust 1.42
* Update tinyvec.rs
* new extend and insert
* mem::take is from rust 1.40
* Modify tiny_vec! to avoid error on non-Copy types
Using $elem in two closures in the previous version of the macro created
errors when using types that don't implement Copy. Moving the decision
of whether to allocate or use an inline array to the macro invocation
resolves this error as the borrow checker can see that both branches are
never taken together.
* Add test for tiny_vec! using non-Copy types
* Fix inference issue
* Use full crate path in tiny_vec!
* start of slicevec
* remove todo! because it's not in 1.36
* Update Cargo.toml
* slice vec into iterator
* slicevec drain
* complete last unimplemented
* remove the extra default feature
* spelling
* Update src/slicevec.rs
Co-Authored-By: Joshua Nelson <joshua@yottadb.com>
* docs clarification.
Co-authored-by: Joshua Nelson <joshua@yottadb.com>