#heap-allocation #zero-copy #alignment #column #padding #string

no-std zero-copy-pads

Padding/aligning values without heap allocation

8 releases

0.2.0 Apr 27, 2021
0.1.7 Apr 27, 2021
0.0.0 Apr 22, 2021

#1573 in Algorithms

Download history 74/week @ 2024-03-31 45/week @ 2024-04-07 38/week @ 2024-04-14 54/week @ 2024-04-21 32/week @ 2024-04-28 24/week @ 2024-05-05 29/week @ 2024-05-12 10/week @ 2024-05-19 31/week @ 2024-05-26 25/week @ 2024-06-02 16/week @ 2024-06-09 32/week @ 2024-06-16 26/week @ 2024-06-23 44/week @ 2024-06-30 55/week @ 2024-07-07 32/week @ 2024-07-14

160 downloads per month
Used in parallel-disk-usage

MIT license

47KB
944 lines

zero-copy-pads

Test Crates.io Version

Padding/aligning values without heap allocation.

Cargo Features

  • std (default feature):
    • Disable #![no_std].
    • Enable features that require heap allocation.

Usage

API references and example codes can be found in docs.rs.

License

MIT © Hoàng Văn Khải.


lib.rs:

Padding/aligning values without heap allocation.

Features:

  • std (default feature):
    • Disable #![no_std].
    • Enable features that require heap allocation.

Usage:

Almost all items are documented with example codes, such as align_left, align_right, align_center_left, align_center_right, align_column_left, align_column_right, align_column_center_left, align_column_center_right, PaddedValue, PaddedColumn, Alignment, AlignLeft, AlignRight, AlignCenterLeft, AlignCenterRight, etc.

Dependencies

~1.6–2.1MB
~38K SLoC