#zero-copy #heap-allocation #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

#1606 in Algorithms

Download history 41/week @ 2024-07-19 155/week @ 2024-07-26 48/week @ 2024-08-02 46/week @ 2024-08-09 27/week @ 2024-08-16 50/week @ 2024-08-23 48/week @ 2024-08-30 29/week @ 2024-09-06 12/week @ 2024-09-13 35/week @ 2024-09-20 30/week @ 2024-09-27 26/week @ 2024-10-04 19/week @ 2024-10-11 29/week @ 2024-10-18 44/week @ 2024-10-25 100/week @ 2024-11-01

195 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

~3MB
~54K SLoC