Skip to content

feat: add append api - #33

Merged
Reinsdyret merged 1 commit into
mainfrom
add-append-api
Sep 30, 2025
Merged

feat: add append api#33
Reinsdyret merged 1 commit into
mainfrom
add-append-api

Conversation

@Reinsdyret

Copy link
Copy Markdown
Collaborator

Adds a SoAVec::append() API

This moves all the elements of other into self, setting the len of other to 0.

Closes #24

@aapoalas aapoalas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM <3

Comment thread soavec/src/lib.rs Outdated
///
/// # Time complexity
///
/// Takes *O*(*other.len()*) time.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: In SoAVec's case this is multiplied by the number of fields.

@Reinsdyret
Reinsdyret merged commit 2387b53 into main Sep 30, 2025
3 checks passed
@Reinsdyret
Reinsdyret deleted the add-append-api branch September 30, 2025 09:50
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.

append API

2 participants