collect_failable 0.18.0

A trait for collecting values into a container which has an invariant to uphold and whose construction may fail
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
# TODO

- [X] Explore `no_alloc` support for `CollectError` to allow `ArrayVec` extensions to be used in environments without `alloc`.
  - Now when not using `alloc` errors are not boxed.
- [ ] Explore adding `TryUnzip` for more than two collections.
- [ ] Explore adding `TryExtend` for more than two collections.
- [ ] Explore a safe method of collecting into an array.
- [X] Explore not panicking on invalid size hints.
  - Decided to panic on invalid size hints, and other logic errors.
- [ ] Consider spinning of Capacity trait into its own crate, or as a part of `size_hinter` crate.
- [ ] Add more implementations.
  - `TinyVec`