Skip to content

growable ringbuffer - #92

Merged
jdonszelmann merged 7 commits into
mainfrom
growable-ringbuffer
Jun 8, 2023
Merged

jdonszelmann merged 7 commits into
mainfrom
growable-ringbuffer

Conversation

@jdonszelmann

@jdonszelmann jdonszelmann commented Jun 2, 2023 •

Copy link
Copy Markdown
Collaborator

A wrapper around VecDeque with all ringbuffer traits implemented.

The reason it's a wrapper, is that RingBufferExt requires Index<isize> instead of Index<usize> which is something we cannot just override for the built in type.

@jdonszelmann
jdonszelmann requested a review from NULLx76 June 2, 2023 16:00
@NULLx76

NULLx76 commented Jun 5, 2023

Copy link
Copy Markdown
Owner

The reason it's a wrapper, is that RingBufferExt requires Index instead of Index

How do you mean "Index instead of Index", isize instead of usize? In any case also add the reasoning for the wrapper in a doc comment somewhere

@NULLx76

NULLx76 commented Jun 5, 2023

Copy link
Copy Markdown
Owner

image
Tarpaulin says these methods aren't tested, might be it not detecting coverage correctly. But if these aren't actually tested we probably should

Comment thread Cargo.toml Resolved
Comment thread src/ringbuffer_trait.rs Resolved
Comment thread src/ringbuffer_trait.rs Resolved
Comment thread src/lib.rs Resolved
@jdonszelmann
jdonszelmann force-pushed the growable-ringbuffer branch from dfd3555 to 121acf5 Compare June 8, 2023 09:38
@jdonszelmann
jdonszelmann merged commit 94d77f8 into main Jun 8, 2023
@jdonszelmann
jdonszelmann deleted the growable-ringbuffer branch June 8, 2023 09:46
NULLx76 pushed a commit that referenced this pull request Jul 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants