buffer-trait

Crates.iobuffer-trait
lib.rsbuffer-trait
version0.2.2
created_at2025-04-04 15:57:22.724685+00
updated_at2025-09-09 01:37:29.285889+00
descriptionA `Buffer` trait for reading into uninitialized buffers.
homepage
repositoryhttps://codeberg.org/sunfishcode/buffer-trait
max_upload_size
id1620260
size65,651
Dan Gohman (sunfishcode)

documentation

https://docs.rs/buffer-trait

README

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 a safe interface for using Buffer.

Feedback is welcome! Nothing here is set in stone.

Commit count: 0

cargo fmt