Skip to content

Extend from nonoverlapping#92

Merged
orxfun merged 3 commits intomainfrom
extend_from_nonoverlapping
Apr 12, 2026
Merged

Extend from nonoverlapping#92
orxfun merged 3 commits intomainfrom
extend_from_nonoverlapping

Conversation

@orxfun
Copy link
Copy Markdown
Owner

@orxfun orxfun commented Apr 12, 2026

extend_from_nonoverlapping method extends the pinned vector by copying count * size_of::<T>() bytes from src to self. The source and destination may not overlap.

This method can be considered as a combination of [extend] and [copy_from_nonoverlapping] methods such that:

  • it takes the elements from src and writes them to this vector by memcpy;
  • however, it does add these elements to the end of this vector which grows as needed.

@orxfun orxfun merged commit 1d3fab7 into main Apr 12, 2026
1 check passed
@orxfun orxfun deleted the extend_from_nonoverlapping branch April 12, 2026 16:12
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.

1 participant