#raw-pointers #pointers #no-std #raw

no-std rawpointer

Extra methods for raw pointers and NonNull<T>. For example .post_inc() and .pre_dec() (c.f. ptr++ and --ptr), offset and add for NonNull<T>, and the function ptrdistance.

3 unstable releases

Uses old Rust 2015

0.2.1 Sep 12, 2019
0.2.0 Sep 8, 2019
0.1.0 Dec 15, 2016

#582 in Rust patterns

Download history 317530/week @ 2024-12-14 147216/week @ 2024-12-21 172764/week @ 2024-12-28 317082/week @ 2025-01-04 444984/week @ 2025-01-11 381129/week @ 2025-01-18 352429/week @ 2025-01-25 408521/week @ 2025-02-01 518392/week @ 2025-02-08 489507/week @ 2025-02-15 551685/week @ 2025-02-22 571746/week @ 2025-03-01 576826/week @ 2025-03-08 734964/week @ 2025-03-15 1345921/week @ 2025-03-22 607583/week @ 2025-03-29

3,358,975 downloads per month
Used in 3,022 crates (13 directly)

MIT/Apache

9KB
140 lines

rawpointer

Please read the API documentation here

build_status

Recent Changes

  • 0.2.0
    • Add support for NonNull<T>
    • Added more documentation and an example
    • Now requires Rust 1.26 or later
  • 0.1.0
    • Initial release

No runtime deps