#api #buffer-trait

no-std buffer-trait

A Buffer trait for reading into uninitialized buffers

3 unstable releases

Uses new Rust 2024

0.2.0 Apr 7, 2025
0.1.1 Apr 6, 2025
0.1.0 Apr 4, 2025

#145 in No standard library

Download history 256/week @ 2025-04-01 103/week @ 2025-04-08 11/week @ 2025-04-15

370 downloads per month

Apache-2.0…

31KB
513 lines

A Buffer trait for reading into uninitialized buffers.

This is a repo about the Buffer trait idea covered in a recent blog post.

rustix's Buffer trait is sealed for now, for practical reasons, and not all of the ideas discussed in the post are implemented.

To illustrate the full Buffer idea, this repo contains a library with a fully public Buffer trait, and adds support for using Buffer using entirely safe code.

Feedback is welcome! Nothing here is set in stone.

No runtime deps