26 releases (13 breaking)

Uses old Rust 2015

0.14.3 May 6, 2024
0.14.2 Mar 17, 2023
0.14.1 Feb 23, 2023
0.14.0 Apr 10, 2020
0.3.0 Oct 27, 2016

#48 in Data structures

Download history 202620/week @ 2024-08-05 202692/week @ 2024-08-12 208132/week @ 2024-08-19 208477/week @ 2024-08-26 202260/week @ 2024-09-02 207510/week @ 2024-09-09 195740/week @ 2024-09-16 217232/week @ 2024-09-23 230632/week @ 2024-09-30 230267/week @ 2024-10-07 219476/week @ 2024-10-14 232890/week @ 2024-10-21 217064/week @ 2024-10-28 212238/week @ 2024-11-04 205905/week @ 2024-11-11 215697/week @ 2024-11-18

862,749 downloads per month
Used in 970 crates (18 directly)

MIT/Apache

73KB
1.5K SLoC

Build Status

An implementation of union-find in Rust; extracted from (and used by) rustc.

Name

The name "ena" comes from the Greek word for "one".

Features

By default, you just get the union-find implementation. You can also opt-in to the following experimental features:

  • bench: use to run benchmarks (cargo bench --features bench)

License

Like rustc itself, this code is dual-licensed under the MIT and Apache licenses. Pull requests, comments, and other contributions are assumed to imply consent to those terms. Moreover, it is understood that any changes here may well be used in rustc itself under the same terms.


lib.rs:

An implementation of union-find. See the unify module for more details.

Dependencies

~92KB