#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

#1486 in Algorithms

Download history 12/week @ 2024-01-01 66/week @ 2024-01-08 25/week @ 2024-01-15 41/week @ 2024-01-22 16/week @ 2024-01-29 138/week @ 2024-02-05 68/week @ 2024-02-12 59/week @ 2024-02-19 71/week @ 2024-02-26 72/week @ 2024-03-04 87/week @ 2024-03-11 122/week @ 2024-03-18 46/week @ 2024-03-25 71/week @ 2024-04-01 45/week @ 2024-04-08 44/week @ 2024-04-15

211 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