20 releases

0.7.0 Apr 29, 2022
0.6.5 Apr 16, 2021
0.6.4 Feb 17, 2021
0.6.2 May 15, 2020
0.1.2 Mar 11, 2019

#400 in Data structures

Download history 82057/week @ 2023-11-21 102303/week @ 2023-11-28 97196/week @ 2023-12-05 100709/week @ 2023-12-12 79148/week @ 2023-12-19 51303/week @ 2023-12-26 95092/week @ 2024-01-02 98837/week @ 2024-01-09 103258/week @ 2024-01-16 106585/week @ 2024-01-23 104577/week @ 2024-01-30 113629/week @ 2024-02-06 107831/week @ 2024-02-13 116409/week @ 2024-02-20 125521/week @ 2024-02-27 104184/week @ 2024-03-05

471,885 downloads per month
Used in 1,709 crates (4 directly)

MPL-2.0+

165KB
4K SLoC

sized-chunks

Various fixed length array data types, designed for immutable.rs.

Overview

This crate provides the core building blocks for the immutable data structures in immutable.rs: a sized array with O(1) amortised double ended push/pop and smarter insert/remove performance (used by im::Vector and im::OrdMap), and a fixed size sparse array (used by im::HashMap).

In a nutshell, this crate contains the unsafe bits from immutable.rs, which may or may not be useful to anyone else, and have been split out for ease of auditing.

Documentation

Licence

Copyright 2019 Bodil Stokke

This software is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Dependencies

~140KB