intrusive-collections 0.2.0

Intrusive collections for Rust (linked list and red-black tree)
Documentation

intrusive-collections

Build Status Coverage Status Crates.io

A Rust library for creating intrusive collections. Currently supports doubly-linked lists and red-black trees.

Documentation

Usage

Add this to your Cargo.toml:

[dependencies]
intrusive-collections = "0.2"

and this to your crate root:

#[macro_use]
extern crate intrusive_collections;

This crate has two Cargo features:

  • nightly: Enables nightly-only features: const fn constructors and NonZero support for IntrusiveRef.
  • box (enabled by default): Enables IntrusiveRef::{from_box,into_box}. This requires libstd on stable, but only liballoc if the nightly feature is enabled.

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.