#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

#1704 in Algorithms

Download history 28/week @ 2024-11-13 78/week @ 2024-11-20 110/week @ 2024-11-27 44/week @ 2024-12-04 46/week @ 2024-12-11 28/week @ 2024-12-18 10/week @ 2024-12-25 83/week @ 2025-01-01 91/week @ 2025-01-08 255/week @ 2025-01-15 3949/week @ 2025-01-22 50/week @ 2025-01-29 82/week @ 2025-02-05 77/week @ 2025-02-12 116/week @ 2025-02-19 104/week @ 2025-02-26

388 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