commit | 8dc097a2c65a086aab839323d7549a4e78c6ff63 | [log] [tgz] |
---|---|---|
author | Victor Hsieh <victorhsieh@google.com> | Tue Dec 15 13:56:43 2020 -0800 |
committer | Victor Hsieh <victorhsieh@google.com> | Thu Jan 07 15:25:26 2021 -0800 |
tree | 350b8f13f4354dd49c4271b55e6769110d59b628 | |
parent | 4567167af00549205a4354a92584777b9b127ea5 [diff] |
Import intrusive-collections from crates.io This is generated with get_rust_pkg.py, plus Android.bp, TEST_MAPPING and patches/Android.bp.patch. Test is not generated due to API changes in rand* crates. Android's version is already newer, so it requires to fix this library to make the test build. Bug: 174797066 Test: mma Test: tools/external_updater/updater.sh update --refresh --keep_date rust/crates/intrusive-collections Change-Id: If027f439d88ca585e57f2efa05ad6ac88130e8e5
A Rust library for creating intrusive collections. Currently supports singly-linked and doubly-linked lists, as well as red-black trees.
#[no_std]
.Cursor
-based interface, which allows safe mutation while iterating.For examples and more information, see the documentation (crates.io, master).
Add this to your Cargo.toml
:
[dependencies] intrusive-collections = "0.9"
This crate has two Cargo features:
nightly
: Enables nightly-only features: const fn
constructors for collections (Link
constructors are always const fn
)alloc
(enabled by default): Implements IntrusivePointer
for Box
, Rc
and Arc
.Licensed under either of
at your option.
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.