#slice #string #space

no-std squash

More space efficient encoding of owned heap-allocated slices

1 unstable release

0.1.0 Dec 28, 2020

#646 in Memory management


474 lines


Actions Status codecov docs

More space-efficient way to encode owned slices and string slices on the heap (single pointer on the stack + down to one byte to encode the length on the heap).

Further details are in the the documentation.


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.

No runtime deps