bors[bot] 8c329c3292
Merge #301
301: Add some more Vec methods. r=japaric a=Dirbaio

Added

- `Vec::insert(index, element)`
- `Vec::remove(index)`
- `Vec::retain(f)`
- `Vec::retain_mut(f)`

Behavior matches `std` except `insert` which is now fallible and returns back the element when full. Implementation and docs taken from `std`.

Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-07-05 10:08:35 +00:00
2021-04-27 19:03:12 +02:00
2022-07-04 19:07:25 +02:00
2022-06-15 15:11:11 +02:00
2022-06-15 15:11:11 +02:00
2022-07-04 19:13:02 +02:00
2017-03-05 00:30:10 -05:00
2017-03-05 00:30:10 -05:00
2021-03-25 16:30:45 +01:00

crates.io crates.io

heapless

static friendly data structures that don't require dynamic memory allocation

Documentation

Change log

Tests

# run all
cargo test --features 'serde','x86-sync-pool'
# run only for example histbuf tests
cargo test histbuf --features 'serde','x86-sync-pool'

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Description
Heapless, static friendly data structures
Readme 18 MiB
Languages
Rust 100%