Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clone and index traits #25

Merged
merged 1 commit into from
Aug 28, 2024
Merged

clone and index traits #25

merged 1 commit into from
Aug 28, 2024

Conversation

orxfun
Copy link
Owner

@orxfun orxfun commented Aug 28, 2024

  • Thread safe Clone method is implemented.
  • Index and IndexMut traits are implemented for usize indices.
  • Debug trait implementation is made mode convenient, revealing the current len and capacity in addition to the elements.
  • Upgraded dependencies to pinned-vec (3.7) and pinned-concurrent-col (2.6) versions.
  • Tests are extended:
    • concurrent clone is tested.
    • in addition to concurrent push & read, safety of concurrent extend & read is also tested.
  • boxcar::Vec is added to the benchmarks.

* Thread safe `Clone` method is implemented.
* `Index` and `IndexMut` traits are implemented for `usize` indices.
  * Due to possibly fragmented nature of the underlying pinned vec, and since we cannot return a reference to a temporarily created collection, currently index over a range is not possible. This would be possible with `IndexMove` (see rust-lang/rfcs#997).
* Debug trait implementation is made mode convenient, revealing the current len and capacity in addition to the elements.
* Upgraded dependencies to pinned-vec (3.7) and pinned-concurrent-col (2.6) versions.
* Tests are extended:
  * concurrent clone is tested.
  * in addition to concurrent push & read, safety of concurrent extend & read is also tested.
* boxcar::Vec is added to the benchmarks.
@orxfun orxfun merged commit a7e82ee into main Aug 28, 2024
@orxfun orxfun deleted the clone-and-index-implementations branch August 28, 2024 19:25
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.

None yet

1 participant