How to design a good generic container and zero-copy? Getting stuck because of MaybeUninit
The Rust Programming Language Forum
How to design a good generic container and zero-copy? Getting stuck because of MaybeUninit
Hi! I started implementing a fast single-threaded ringbuffer, similar to ringbuf. I would have used it directly, but it's missing one thing: zero-copy support for writing. Here's my use case (the top library): // Handler is part of a library, and the user supplies the App struct<App> Handler<App> where App: ApplicationHandler, { app: App, ringbuf: MyRingbuf, } impl<App> Handler<App> where ... { // Some other library code func handle_data(&mut self, data: &[u8]) { l...
0 comments
No comments yet.