bors[bot] 5e2054286a
Merge #129
129: Fix improper handling of overflow in `len_usize` (fix #128) r=japaric a=david-sawatzke

This will lead to implausibly large lengths, nearly endless iterators
and possibly unsound behaviour through the Drop implementation

Switches the `truncate` method to refer to the common defintion of
simply chopping of the test bits. (Implemented by `as`, which is defined
to do this).

Adds a new `saturate` method to replace the previous `truncate` method

Co-authored-by: David Sawatzke <david-sawatzke@users.noreply.github.com>
2019-12-17 10:44:06 +00:00
2019-04-22 21:08:26 +02:00
2019-05-21 12:43:19 +02:00
2019-12-17 10:44:06 +00:00
2019-08-11 18:51:16 +02:00
2019-08-29 15:42:47 +02:00
2019-08-29 15:42:47 +02:00
2017-03-05 00:30:10 -05:00
2017-03-05 00:30:10 -05:00
2018-04-23 19:54:46 +02:00

crates.io crates.io

heapless

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

Documentation

Change log

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%