Skip to content

Feat: add shift_left and shift_right#112

Draft
RDambrosio016 wants to merge 1 commit intorust-lang:masterfrom
RDambrosio016:shift
Draft

Feat: add shift_left and shift_right#112
RDambrosio016 wants to merge 1 commit intorust-lang:masterfrom
RDambrosio016:shift

Conversation

@RDambrosio016
Copy link
Copy Markdown

Adds shift_left and shift_right per #98, However it is broken in the same manner as #111 therefore it is also a draft.

@workingjubilee workingjubilee force-pushed the master branch 4 times, most recently from cc78a1c to ab8eec7 Compare October 22, 2021 01:21
@sammysheep
Copy link
Copy Markdown
Contributor

I saw that rotation methods were added a while back but for the life of me (user error?) couldn't find a whole vector shift in the API as implemented here. Obviously the within each element shift exists and it's easy to use.

Also curious, does the compiler optimize this well?

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 14, 2026

☔ The latest upstream changes (possibly #511) made this pull request unmergeable. Please resolve the merge conflicts.

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.

3 participants