#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

#1482 in Algorithms

Download history 15/week @ 2023-12-08 31/week @ 2023-12-15 16/week @ 2023-12-22 10/week @ 2023-12-29 47/week @ 2024-01-05 45/week @ 2024-01-12 39/week @ 2024-01-19 16/week @ 2024-01-26 41/week @ 2024-02-02 145/week @ 2024-02-09 66/week @ 2024-02-16 64/week @ 2024-02-23 69/week @ 2024-03-01 83/week @ 2024-03-08 112/week @ 2024-03-15 78/week @ 2024-03-22

351 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

~2.5MB
~53K SLoC